The release mode configuration has not been set up yet.
You should check the usual stuff when building for release mode and using some libraries:
- all projects should use the same runtime library (c++/code generation). Probably Multithreaded DLL.
- RTTI should be enabled for all projects (c++/language)
You will probably have to define the correct link settings for most of the projects (use the debug conf. as a model). Don't forget to update the pre-link step in the sample to copy the TestRunner dll to the Release directory.
Baptiste.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-06-15
The other reply is correct, although I believe the exact problem is likely the use of different run time libraries. Makes CppUnit and your project use the exact same library (ie. MT DLL).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I tried to compile TestRunner(CppUnit 1.5.5) with ms
Visual C++ 6.0 in Release mode I got the following error:
================================================
Linking...
msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: bool
__thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char>
>::_Grow
(unsigned int,bool)" (?_Grow@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@AAE
_NI_N@Z) already defined in cppunit.lib(TestSuite.obj)
..............................
--------------------------
my setup is as follows:
windows nt4 sp4
ms vsual c++ 6.0 sp5
CppUnit 1.5.5
What't the matter?
The release mode configuration has not been set up yet.
You should check the usual stuff when building for release mode and using some libraries:
- all projects should use the same runtime library (c++/code generation). Probably Multithreaded DLL.
- RTTI should be enabled for all projects (c++/language)
You will probably have to define the correct link settings for most of the projects (use the debug conf. as a model). Don't forget to update the pre-link step in the sample to copy the TestRunner dll to the Release directory.
Baptiste.
The other reply is correct, although I believe the exact problem is likely the use of different run time libraries. Makes CppUnit and your project use the exact same library (ie. MT DLL).
Thanks blep and gtownsend.
Now I can compile TestRunner in release mode successfully.