comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Building C main with Ada on Visual V++ - _image_base_
Date: Sun, 05 Sep 2004 10:00:29 +0200
Date: 2004-09-05T10:00:29+02:00	[thread overview]
Message-ID: <3845742.UWZYDGS9Sd@linux1.krischik.com> (raw)
In-Reply-To: 978305c9.0409030817.29461d59@posting.google.com

Paul Springer wrote:

> Martin Krischik <krischik@users.sourceforge.net> 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




      reply	other threads:[~2004-09-05  8:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 13:49 Building C main with Ada on Visual V++ - _image_base_ Paul Springer
2004-09-02 16:38 ` Martin Krischik
2004-09-03 16:17   ` Paul Springer
2004-09-05  8:00     ` Martin Krischik [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox