Linker Errors?

Richard Head richard.head@gefanuc.com
Fri Feb 1 16:22:00 GMT 2008


I get the following output when I try and link 3 object files to form my exe.

gcc main.o fusionFileIO.o fusionAlgorithms.o -o fusionTK.exe
fusionFileIO.o:fusionFileIO.c:(.rdata+0x0): multiple definition of `_BAD_IMAGE'
main.o:main.c:(.rdata+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [fusionTK.exe] Error 1

"BAD_IMAGE" is a constant declared in a header file used in all 3 of the object
files. 

Where am I going wrong? 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list