comp.lang.ada
 help / color / mirror / Atom feed
* Linking C and ADA, + "fixincludes"
@ 1997-01-15  0:00 Viqar Abbasi
  0 siblings, 0 replies; only message in thread
From: Viqar Abbasi @ 1997-01-15  0:00 UTC (permalink / raw)



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:<filename> 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-01-15  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-15  0:00 Linking C and ADA, + "fixincludes" Viqar Abbasi

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