* Help creating Ada obj file for use in C
@ 1997-06-20 0:00 Dan Antill
0 siblings, 0 replies; only message in thread
From: Dan Antill @ 1997-06-20 0:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-06-20 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-20 0:00 Help creating Ada obj file for use in C Dan Antill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox