comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: Re: library files
Date: Thu, 5 Aug 2004 10:52:19 -0500
Date: 2004-08-05T10:52:19-05:00	[thread overview]
Message-ID: <2nf3dmF8h9tU1@uni-berlin.de> (raw)
In-Reply-To: cete5c$895$1@hamble.qinetiq.com

"Harry Overs" <hovers@dera.gov.uk> wrote:

> 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

A bit more info is needed to answer this:

What Ada compiler is being used?

Have the Ada subprograms that are going to be called from C++ been
designated with "pragma Export" if Ada 95, or if Ada 83, have the vendor's
directions for invoking Ada from a non-Ada program been followed?

Other libraries from the vendor's Ada runtime library may also need to be
linked into the executable. Have those been identified?

Is it assured that this Ada compiler's runtime library is interoperable with
VC++? Not all are. (And if not, all is not lost--you can put a "messaging
wrapper" around the Ada code and gin up a message-based communication
protocol to invoke the Ada portion and pass data back and forth. Hurts
performance, but the import of that depends on your application's purpose.)

Marc A. Criley
McKae Technologies
www.mckae.com





  reply	other threads:[~2004-08-05 15:52 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 [this message]
2004-08-05 16:09 ` Jacob Sparre Andersen
2004-08-10 14:44 ` Harry Overs
  -- 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