[Cppunit-devel] How do I compile my VC6 Unit test project with "use MFC in a static library"?
Brought to you by:
blep
From: Steve H. <ste...@im...> - 2002-04-24 18:08:22
|
Hi there I try to create a VC++6 unit test project that uses CppUnit and = TestRunner library. If I compile the program with "use MFC in a shared = DLL", that is OK. But when I compile the program with "use MFC in a = static library", I got errors such as "libc.lib(crt0dat.obj) : error = LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll) libc.lib(crt0dat.obj) : error LNK2005: __exit already defined in = msvcrt.lib(MSVCRT.dll)" Or=20 "nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol = ___argv nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol = ___argc nafxcw.lib(timecore.obj) : error LNK2001: unresolved external symbol = __mbctype" I tried to recompile the examples come with CppUnit. I got similar = errors. Could you tell me why and how I can fix the problem? Thanks, Steve Hong =09 |