From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aef6b30161e0fcc6,start X-Google-Attributes: gid103376,public From: Kevin L. Johnson Subject: ObjectAda and MSVC++ Linking via adainit, adafinal Date: 1998/01/22 Message-ID: <885484040.460259331@dejanews.com>#1/1 X-Deja-AN: 318342210 To: johnsonkl@eccic.com X-Http-User-Agent: Mozilla/2.0 (compatible; MSIE 3.01; Windows NT) X-Originating-IP-Addr: 207.100.238.84 () Organization: Deja News Posting Service X-Authenticated-Sender: Kevin L. Johnson X-Article-Creation-Date: Thu Jan 22 15:47:20 1998 GMT Reply-To: johnsonkl@eccic.com Newsgroups: comp.lang.ada Date: 1998-01-22T00:00:00+00:00 List-Id: Using ObjectAda 7.1 and Visual C++ 5.0, I am attempting to create a trivial C++ main that invokes adainit, adamain, and adafinal due to some calls to C++ within the Ada code. The problem occurring is three undefined symbols from the C++ link. --------------------Configuration: AdaMain - Win32 Debug-------------------- Compiling... AdaMain.cpp Linking... adamain.lib(adainit.obj) : error LNK2001: unresolved external symbol _elab_func_array adamain.lib(adainit.obj) : error LNK2001: unresolved external symbol _adaopts adamain.lib(adainit.obj) : error LNK2001: unresolved external symbol _rts_main_prio_info Debug/AdaMain.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. AdaMain.exe - 4 error(s), 0 warning(s) I have searched all files provided with ObjectAda 7.1 and have come up with nothing. The following excerpt from the Aonix support website shows how to import adainit and adafinal to call them from Ada, but provides no instructions for calling from other languages. procedure AdaInit; pragma Import (C, AdaInit, "adainit"); The Aonix documentation in this area is inadequate. I would like to know if anyone has seen and solved this particular problem. Thanks. -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet