07-19-2011 03:21 PM
Getting undefined symbol link error with a 3rd party static library. The .lib and .h are in the project. Library is suppose to be compiled with Visual Studio 2008 and they tell me it's pure C code and so compiled with the C compiler, not C++. They tell me it was not compiled with any of the following switches, /J, /Zp, /Ge, /Gh, and /Gs. I just did a new install of LabWindows 2010, downloaded a couple day's ago so have the latest. Any idea's? I've done this before but with a much older version of LabWindows and it worked without any of these problems.
Thanks.
07-20-2011 11:51 AM
Hello,
Would you mind posting a screen shot of the exact error you are seeing?
07-20-2011 12:50 PM
Here's what I get. The library is adapter.lib, it's header is adapter.h. I do have adapter.h included in the .c files. I have this project running under VS2008 and am just trying to port it over to LabWindows. Now, my VS2008 project does have one C++ file so it is being compiled with thier C++ compiler. That C++ file just did some network IO which I'm not doing under LabWindows. But as I said the company that supplied adapter.lib say's there is no C++ anywhere in it so I assume it should be pure C compatible.
I've included adapter.h also. This .h file is the same for 32 and 64 bit windows as well as VxWorks. I can't see anything in it that doesn't work right in this case.
07-22-2011 12:04 AM
Hello,
Thanks for the files. I'm going to work to replicate this on my end and will let you know what I find!
Thanks!
07-22-2011 12:45 AM
The file adapter.h doesn't define the calling convention for the functions. If you have the default calling convention set to __cdecl, try setting it to __stdcall (in Options|Build Options...).