RE: [Cppunit-devel] Anyone got CppUnit to work with /MTd ?
Brought to you by:
blep
From: Pedro F. <ped...@in...> - 2002-06-28 15:34:56
|
> > > 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. > > > > Shooting from the hip: > > > > - Have you tried DllPluginTest.exe instead of > > DllPluginTest_DLL.exe? > > - Aren't you using DllPluginTest(_DLL).exe to run > > Debug version > > tests? > > > > I haven't tried the DllPluginTest.exe, does it initialize > something differently ? For me, it only works with the DLL runtime, but I'll leave the details to anyone more acquainted with the matter. > 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 :) Yup. No more bullets, sorry. Pedro |