[xsde-users] Tons of Linker Errors (LIBCMT/___CxxFrameHandler3 etc.)

Marvin M. xsde-users at groenndemon.de
Sat Apr 17 09:50:32 EDT 2010

Hi Boris,

thank you very much for your help, you saved me!

Boris Kolpackov schrieb:
>> But when I try to compile my simple console application under Visual
>> Studio 2008 (empty Win32 console project), I get tons of linker errors.
>> I don't know much about the linker and depending on what I choose for
>> /NODEFAULTLIB, /Zl, code-generation options (/MTd, /GS-, runtime library
>> and whatnot) I get between 9 and over 400 linker errors.
> You need to make sure your application and xsde.lib use the same
> C/C++ runtime. To do this, open the Project Properties dialog
> for your application, go to C/C++ -> Code Generation and check
> which option is used for the "Runtime Library" setting. It will
> be one of /M* options.

/MTd for Debug
/MT  for Release

> Then open config/config.nmake and add this
> option to the CFLAGS and CXXFLAGS.

Btw, what are the CPPFLAGS for?

> Then rebuild xsde.lib:
> nmake /f nmakefile clean
> nmake /f nmakefile

I couldn't use /MT for the XSD/e and then link my Debug (/MTd)
application against it.
So I had to build XSD/e twice (once with /MT and once with /MTd).
I then copied the respective xsde.lib files to new sub-directories
"Debug" and "Release" and had my linker path include
"...\libxsde\xsde\$(ConfigurationName)" - in case anyone should ever
have the same problem.


More information about the xsde-users mailing list