I downloaded the WATCOM compiler, and then tried adding a reference to my .h file to the primary .c file in one of the win16 sample programs. I then added a reference to the .LIB file.
That compiled ok, but then I added a call to one of the functions in the LIB and (insert sound of breaking glass) I got this linker error:
Error! E2028: amp_enable_ is an undefined reference
file WATZEE.obj(C:\WATCOM\samples\win\watzee\WATZEE.C): undefined symbol amp_enable_
Here is an interesting note from the linker help:
By default, the Open Watcom C and C++ compilers append an underscore ('_') to all function names.
This is the definition in the .h file:
void amp_enable();
It seems like the appended underscores are causing problems-
I will mess with it a little bit, but I may have to wait for the right version of the Borland compiler to show up on my doorstep.
Also, I admit that I know next to nothing about linkers or C++ for that matter, so if I am doing something dumb, please call me on it!
Thanks, Mike
__________________ Expensive tools can be cheaper than professional therapy |