comp.lang.ada
 help / color / mirror / Atom feed
From: antilld@vfb23.mds.lmco.com (Dan Antill)
Subject: Help creating Ada obj file for use in C
Date: 1997/06/20
Date: 1997-06-20T00:00:00+00:00	[thread overview]
Message-ID: <5oe7ma$9hr@morgan.vf.lmco.com> (raw)


Hi.

I am having a lot of trouble linking my ada object file with C.
(C will be the main program)   I am using SunAda3.0 on SunOs5.4

I make my ada normal ada library, and used a.ar -f to create the archive
library. 

Then, I have my C object file and say "ld c_obj.o ada_obj.o -o exec_file"

This causes SLEWS of Undefined Symbol errors such as:
"_A_time_error.EXCEPTION.calender"  and "_A_create.19S12.text_io"

I don't understand what these symbols are, and how I can tell the linker
or compiler to include them when I make the object file.

I have an ADA routine that I have to call externally (really, from Oracle
Forms (which gave me trouble)) so I am trying to see if I can call it from
C instead. I figure that if I can do that, then I can also get Oracle, too.

I also have already tried these directives 

IMPLICIT_ELABORATE_PRAGMA:INFO:TRUE:
IMPORT_INSTANTIATIONS:INFO:TRUE:
LIBRARY:LINK:library_file:
STATIC_LIBRARY:INFO:static_library:
STATIC_LINKING:INFO:TRUE:

to no apparent avail.
I have also included the new "static_library" in my ld command, which
has the same reaction as my a.ar archive. 

I am hoping that some ADA expert out there can point me in the right 
direction!!!

Thanks very much in advance!!!

Dan





                 reply	other threads:[~1997-06-20  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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