From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e696da7b8e7a499d,start X-Google-Attributes: gid103376,public From: antilld@vfb23.mds.lmco.com (Dan Antill) Subject: Help creating Ada obj file for use in C Date: 1997/06/20 Message-ID: <5oe7ma$9hr@morgan.vf.lmco.com>#1/1 X-Deja-AN: 251360201 Organization: Lockheed Martin Newsgroups: comp.lang.ada Date: 1997-06-20T00:00:00+00:00 List-Id: 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