comp.lang.ada
 help / color / mirror / Atom feed
From: "Harry Overs" <hovers@dera.gov.uk>
Subject: Re: library files
Date: Tue, 10 Aug 2004 15:44:17 +0100
Date: 2004-08-10T15:44:17+01:00	[thread overview]
Message-ID: <cfamu9$f25$1@hamble.qinetiq.com> (raw)
In-Reply-To: cete5c$895$1@hamble.qinetiq.com

Hi,

thanks both for replying.

I've checked what you have both suggested and:
1) we are using the gnu gnat compiler
2) the Ada sub programs have got the pragma export designation
3) I believe I have all of the needed source code apart from the common
system files (though as I dont know anything about Ada I cant verify this).

I have continued to persevere with this and going through the gnu
documentation I found out I was actually creating an archive instead of a
library (now following the steps laid out at
http://www.delorie.com/gnu/docs/gcc/gnat_ug_188.html), so I have now change
my build script so that it attempts to create a library instead.  However
I'm now getting errors during the creation of the library (e.g. "undefined
reference to 'system__soft_links__get_jmpbuf_address_soft'").  During my
attempts to solve these errors I've created a dummy Ada program which
contained one method (no main) and one external method (using pragma
export), this program also came up with similar errors when I tried to
compile it into a library.

so can anyone give me any pointers on how to remedy this?

many thanks,



"Harry Overs" <hovers@dera.gov.uk> wrote in message
news:cete5c$895$1@hamble.qinetiq.com...
> Hi,
>
> we've got some legacy Ada source code which we want to compile into a
> library which will be accessed using a MS VC++ application.  Although
we've
> managed to compile the ada code and turn the .o files into a library when
it
> comes to linking the C++ program we get thousands of errors which seem to
> relate to system calls within the library (i.e. put method).
> Do we need to do anything 'special' whilst creating the library or the
> object files? at present we just use (from the command line):
>
> ar r myLib.lib *.o
>
> many thanks,
>
>





  parent reply	other threads:[~2004-08-10 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 13:54 library files Harry Overs
2004-08-05 15:52 ` Marc A. Criley
2004-08-05 16:09 ` Jacob Sparre Andersen
2004-08-10 14:44 ` Harry Overs [this message]
  -- strict thread matches above, loose matches on Subject: below --
1985-09-26 23:21 Library files Jim Ennis
replies disabled

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