David Kelvin wrote:
Sorry - more help required :-(
Now trying to use the static Xerces library in my MFC builds.
I get lots (50) of linkage errors like:
LIBCMTD.lib(tolower.obj) : error LNK2005: _tolower already defined in msvcrtd.lib(MSVCR80D.dll)
Also had messages:
LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs;
use /NODEFAULTLIB:library
If I then set /NODEFAULTLIB, I get nearly 3000 of error messages like:
error LNK2001: unresolved external symbol "void __cdecl operator delete(....
It would be nice for some documentation on how to use static builds. I am sure it is my fault - missing some compiler or link option but what???
Check the code generation option you've selected. Go to the project
preferences dialog, click on the "+" sign next to "C/C++," then select
"Code Generation." The "Runtime Library" option should be set to
"Multithreaded" or "Multithreaded Debug" as appropriate for the
configuration. The error message indicates your project is using the
DLL runtime libraries.
Dave