comp.lang.ada
 help / color / mirror / Atom feed
* Library files
@ 1985-09-26 23:21 Jim Ennis
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Ennis @ 1985-09-26 23:21 UTC (permalink / raw)


We are using the NYU version of ADA on an IBM 4381 running CMS. I would
like to know if there are any public collections of ADA programs
(like a math library) which could be mailed to me. Our Computer Engineering
professor has made this request and I was hoping to find some math/stat
functions already existing.

My address is JIM%UCF1VM.BITNET@WISCVM.ARPA.

Thanks,

 Jim Ennis

University of Central Florida
Computer Services
PO BOX 25000
Orlando, Fl
32816

^ permalink raw reply	[flat|nested] 5+ messages in thread

* library files
@ 2004-08-05 13:54 Harry Overs
  2004-08-05 15:52 ` Marc A. Criley
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Harry Overs @ 2004-08-05 13:54 UTC (permalink / raw)


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,





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: library files
  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
  2 siblings, 0 replies; 5+ messages in thread
From: Marc A. Criley @ 2004-08-05 15:52 UTC (permalink / raw)


"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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: library files
  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
  2 siblings, 0 replies; 5+ messages in thread
From: Jacob Sparre Andersen @ 2004-08-05 16:09 UTC (permalink / raw)


Harry Overs 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).

It seems like that you have tried to link in just the library object
file, and not also the object files (standard libraries mostly, I
suppose) it depends on.

Jacob
-- 
Wie "Tippfehler !?" Mein Modem hat doch Fehlerkorrektur...




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: library files
  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
  2 siblings, 0 replies; 5+ messages in thread
From: Harry Overs @ 2004-08-10 14:44 UTC (permalink / raw)


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,
>
>





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-10 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1985-09-26 23:21 Library files Jim Ennis
  -- strict thread matches above, loose matches on Subject: below --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox