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=-0.2 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC,URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f9c7bcd455cb4cab X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Building C main with Ada on Visual V++ - _image_base_ Date: Sun, 05 Sep 2004 10:00:29 +0200 Organization: AdaCL Message-ID: <3845742.UWZYDGS9Sd@linux1.krischik.com> References: <978305c9.0409020549.3b7afa00@posting.google.com> <8305344.aqMzkElDTs@linux1.krischik.com> <978305c9.0409030817.29461d59@posting.google.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1094371746 00 4797 p5HcX33l5w2ESHtf 040905 08:09:06 X-Complaints-To: usenet-abuse@t-online.de X-ID: b-MqZ+Z-YehVpzWRRjFF4ykBGLCAxCvxThVuO6uIRVNk86g2Hd1dsa User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:3326 Date: 2004-09-05T10:00:29+02:00 List-Id: Paul Springer wrote: > Martin Krischik wrote in message > news:<8305344.aqMzkElDTsseparatekrischik.com>... >> >> Did you used "gnat bind" to create a bind file for Ada. Thats the files >> which start with "b~". >> > > Martin, > > Thanks for the reply. > > Yes, I did use gnatbind -n xxx.ali and compiled the resulting xxx.ads > and xxx.adb files to get a ~xxx.o file. I included this and the > original xxx.o file in the link libraries. > > Do you know what the __image_base__ symbol is for? As far as I can > tell this symbol is referenced but not defined in the gnat libraries, > so I don't know where its supposed to come from. Well the name would suggest that it has something to do with the 'Image attribute. Hence my question. If one of your Packages is not included when your bind file is generated then the functions implementing 'Image would be missing too. Did you "with" all packages you need in "xxx.adb"? Even if you don't need them directly. Did you use pragma Elaborate_All to make shure all needed Child packages are drawn in as well? Take a look at: http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Include/NT/ada_dll.adb?rev=4.1&view=auto Well it's for a DLL not an EXE but it might give you a hint. However, I might be mistaken. BTW: there are more the one GNAT libraries. i.E. Tasking seems to be implemented in a separate lib. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com