PDA

View Full Version : strange linker error


darth_vector
August 16th, 2006, 11:44 PM
i am getting a strange linker error:

! Error: Unresolved external '_eh' referenced from /src/objdir/nwadump.o

the source file contains a call to a function "eh" that is defined in a header file called gpib.h - used for instrumentation programming.

the reason the error is strange is that there is no reference to "_eh" in nwadump.o whatsoever!

i have checked, double checked and tripple checked all of the source files and can find no problem. any help would be appreciated.

simonn
August 17th, 2006, 01:01 AM
Check that you are linking to the library that gpib.h is the header of.

darth_vector
August 17th, 2006, 07:54 AM
thanks, but thats not it. i am linking the relevant libraries.

LordHunter317
August 17th, 2006, 10:46 AM
The name is being mangled, and probably correctly. That means: you're missing a library.