my LabWindows/CVI project includes a library that was according to the supplier build using Visual C++ compiler with option /MD, so that both multithread- and DLL-specific versions of the run-time routines are selected from the standard .h files. This option also causes the Visual C++ compiler to place the library name MSVCRT.lib into the .obj file. (see http://msdn2.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx for further details). The build of my application aborts with the following linker errors:
5 Project link errors
Undefined symbol '__imp__exit' referenced in "thirdparty.lib".
Undefined symbol '__imp____p__environ' referenced in "thirdparty.lib".
Undefined symbol '_putenv' referenced in "thirdparty.lib".
Undefined symbol '_access' referenced in "thirdparty.lib".
Undefined symbol '__imp___iob' referenced in "thirdparty.lib", "thirdparty.lib", and "thirdparty.lib".
In the suppliers documentation for the library it is said that the linker option /NODEFAULTLIB:"LIBCD.LIB" must be set when the application is build with the Visual C++ compiler. I don't know whether this would solve the problem in LabWindows, anyway it is not possible to set any linker options in LabWindows(?) I found a mas of similar linker problems like the above in the web (search for __imp__exit), where it points out that it depends on linker settings, which LabWindows seem not to support.
I've tried with other options (compatibility to Borland C++ and corresponding library version, changing calling conventions etc.) without success.
Is there anybody out there who experienced similar problems or may have a solution for me?
Thanks in advance, Walter