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,a4bf31ec65b8e029,start X-Google-Attributes: gid103376,public From: Viqar Abbasi Subject: Linking C and ADA, + "fixincludes" Date: 1997/01/15 Message-ID: <32DD2860.1125@cae.ca>#1/1 X-Deja-AN: 210028976 content-type: text/plain; charset=us-ascii organization: CAE Electronics Ltd mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (Win95; I) Date: 1997-01-15T00:00:00+00:00 List-Id: Hello, I am using the following gnat compiler: gnat-3.05-rs6000-ibm-aix3.2-bin.tar and I got the following error: -- collect2: ld returned 8 exit status 0706-317 ERROR: Unresolved or undefined symbols detected: Symbols in error (followed by references) are dumped to the load map. The -bloadmap: option will create a load map. .call_4_execute .call_5_execute .call_3_execute .call_2_execute .call_1_execute .call_0_execute The error code from the last failed command is 2. -- My program files compile correctly, but this problem occurs during linking of .ali files and .o files (from C code). All the functions listed above are C functions which are to be called by ADA. Is this a compiler problem, or does the problem reside in the way I'm attempting to import the C functions. Since the same code is running on a VMS machine, (with a different compiler, I belive), I am wondering if there is a special way to perform the same operations using GNAT. I noticed a shell script file called "fixincludes", in my bin directory, which says it fixes non-ANSI C headers to ANSI-C headers. It says that for more information, I should refer to the file "README-fixinc", which I can't seem to find anywhere. I am hesitant to run the script in /usr/include, since it overwrites alot of headers, so I'd like to know exactly what "fixincludes" will do. Any help would be most appreciated. If possible, please email me your reply. Thank you, Viqar Abbasi