RE: [Cppunit-devel] Anyone got CppUnit to work with /MTd ?
Brought to you by:
blep
From: Philippe L. <phi...@ca...> - 2002-06-28 15:28:53
|
> -----Original Message----- > From: Pedro Ferreira [mailto:ped...@in...] >=20 > > I have 20 projects compiled with /MTd (Multi-threaded debug) > > CppUnit uses /MDd (Multi-threaded Debug DLL). > > > > Because we are using VC7.0, we'd rather compile with /MTd > > instead of /MDd, however if I recompile CppUnit with the /MTd > > flags it fails miserably when executing a unit test through > > the DllPluginTest_DLL.exe program. >=20 > Shooting from the hip: >=20 > - Have you tried DllPluginTest.exe instead of > DllPluginTest_DLL.exe? > - Aren't you using DllPluginTest(_DLL).exe to run=20 > Debug version > tests? >=20 I haven't tried the DllPluginTest.exe, does it initialize something = differently ? Anyway, the problem with /MT is at compile time. I get numerous errors = regarding std::exception and std::string requiring a = __declspec(dllimport) or something similar. Then when I test a DLL = compiled under /MTd (CppUnit also compiled under /MTd) it crash and = burns with an assert error whenever I have a message with more then 15 = characters in a CPPUNIT_ASSERT_MESSAGE. It is strange behavior to say = the least :) Phil |