[Cppunit-devel] MoneyApp won't work in vc++.net ...
Brought to you by:
blep
From: mats w. <mat...@fr...> - 2004-09-28 08:00:45
|
Hi, i am so grateful for this worked example since i have been java conditioned= =20 and like junit a lot but cannot make it's brothers and sisters work for me = in=20 c++ (in which i dabble at best) so i tried to do this with my vc++.net standard edition (couldn't get vc++= =20 6.x any more when i bought). and i dont get any too far: building the cppunit.lib (s) gives the following: TestPlugInRunner warning LNK4075: '/EDITANDCONTINUE' wird auf Grund der Angabe von '/INCREMENTAL:NO' ignoriert cppunit warning LNK4221: Es wurden keine =F6ffentlichen Symbole gefunden. Zugriff auf das archivierte Member wird nicht m=F6glich sein cppunit warning LNK4221: Es wurden keine =F6ffentlichen Symbole gefunden. Zugriff auf das archivierte Member wird nicht m=F6glich sein cppunit warning LNK4221: Es wurden keine =F6ffentlichen Symbole gefunden. Zugriff auf das archivierte Member wird nicht m=F6glich sein c:\cppunit-1.10.2\src\msvc6\testrunner\TestRunner.def(4): warning LNK4017: DESCRIPTION-Anweisung wird von der Zielplattform nicht =20 unterst=FCtzt; ignoriert TestRunner warning LNK4075: '/EDITANDCONTINUE' wird auf Grund der Angabe von '/INCREMENTAL:NO' ignoriert c:\cppunit-1.10.2\src\msvc6\testrunner\TestRunner.def(4): warning LNK4017: DESCRIPTION-Anweisung wird von der Zielplattform nicht =20 unterst=FCtzt; ignoriert TestRunner warning LNK4075: '/EDITANDCONTINUE' wird auf Grund der Angabe von '/INCREMENTAL:NO' ignoriert c:\cppunit-1.10.2\src\msvc6\testrunner\TestRunner.def(4): warning LNK4017: DESCRIPTION-Anweisung wird von der Zielplattform nicht =20 unterst=FCtzt; ignoriert c:\cppunit-1.10.2\src\msvc6\testrunner\TestRunner.def(4): warning LNK4017: DESCRIPTION-Anweisung wird von der Zielplattform nicht =20 unterst=FCtzt; ignoriert cppunit_dll warning LNK4075: '/EDITANDCONTINUE' wird auf Grund der Angabe von '/INCREMENTAL:NO' ignoriert DllPlugInTester warning LNK4075: '/EDITANDCONTINUE' wird auf Grund der Angabe von '/INCREMENTAL:NO' ignoriert DllPlugInTester warning LNK4075: '/EDITANDCONTINUE' wird auf Grund der Angabe von '/INCREMENTAL:NO' ignoriert c:\cppunit-1.10.2\src\msvc6\DSPlugIn\StdAfx.h(21): fatal error C1083: Include-Datei kann nicht ge=F6ffnet werden: 'ObjModel\addauto.h': No =20 such file or directory DSPlugIn error PRJ0019: Ein Tool hat einen Fehlercode aus folgender Quelle zur=FCckgegeben: "duplicating DLL to lib directory" (sorry for the german mumble jumble, this is my locale and the warning/erro= r =20 numbers are valid i hope) i wouldn't mind the warnings so much but there is a fatal error and i just= =20 dunno to what extent that influences the rest of my woes. anyway, i proceeded with project config and found difficulty in identifying= =20 the object/library modules tag. i guess they just renamed everything so=20 people keep investing in training. settled for "linker =2D>extended->import libraries" which may have been a stupid thing to do bu= t it=20 seemed like my best shot by far. so then i copied the MoneyApp text except that my project is called=20 trycppunit. then ctrl+f5 gives me these messages (basically 8 unresolved=20 externals and a few warnings about conflicting options): d:\cppProj\trycppunit\trycppunit.cpp(4): warning C4652: Compiler-Option 'Daten zur Identifikation des C++-Laufzeittyps' steht in Konflikt mit=20 der vorkompilierten Headerdatei; aktuelle Befehlszeilenoption setzt die in der vorkompilierten Headerdatei definierte Option au=DFer Kraft trycppunit error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) bereits in LIBCD.lib(typinfo.obj) definiert trycppunit error LNK2005: "private: class type_info & __thiscall type_info::operator=3D(class type_info const &)"=20 (??4type_info@@AAEAAV0@ABV0@@Z) bereits in LIBCD.lib(typinfo.obj) definiert trycppunit warning LNK4098: Standardbibliothek 'MSVCRTD' steht in Konflikt mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: virtual __thiscall CppUnit::TextTestRunner::~TextTestRunner(void)" (??1TextTestRunner@CppUnit@@UAE@XZ)', verwiesen in Funktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: bool __thiscall CppUnit::TextTestRunner::run(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,bool,bool)"=20 (?run@TextTestRunner@CppUnit@@QAE_NV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@_N11@Z)', verwiesen in Funktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: void __thiscall CppUnit::TextTestRunner::setOutputter(class=20 CppUnit::Outputter *)" (?setOutputter@TextTestRunner@CppUnit@@QAEXPAVOutputter@2@@Z)', verwiesen in Funktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: __thiscall CppUnit::CompilerOutputter::CompilerOutputter(class=20 CppUnit::TestResultCollector *,class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0CompilerOutputter@CppUnit@@QAE@PAVTestResultCollector@1@AAV?$basic_o stream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@ std@@V?$allocator@D@2@@4@@Z)', verwiesen in Funktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: class CppUnit::TestResultCollector & __thiscall=20 CppUnit::TextTestRunner::result(void)const "=20 (?result@TextTestRunner@CppUnit@@QBEAAVTestResultCollector@2@XZ)', verwiesen in Funktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: virtual void __thiscall CppUnit::TestRunner::addTest(class=20 CppUnit::Test *)" (?addTest@TestRunner@CppUnit@@UAEXPAVTest@2@@Z)', verwiesen in Funktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: __thiscall CppUnit::TextTestRunner::TextTestRunner(class CppUnit::Outputter *)" (??0TextTestRunner@CppUnit@@QAE@PAVOutputter@1@@Z)', verwiesen in =46unktion '_main' trycppunit error LNK2019: Nicht aufgel=F6stes externes Symbol '"public: sta= tic=20 class CppUnit::TestFactoryRegistry & __cdecl=20 CppUnit::TestFactoryRegistry::getRegistry(class std::basic_string<char,stru= ct=20 std::char_traits<char>,class std::allocator<char> > const=20 &)" (?getRegistry@TestFactoryRegistry@CppUnit@@SAAAV12@ABV?$basic_string@DU? $char_traits@D@std@@V?$allocator@D@2@@std@@@Z)', verwiesen in Funktion=20 '_main' trycppunit fatal error LNK1120: 8 unaufgel=F6ste externe Verweise so i guess i screwed up on those linker settings. any ideas where they go n= ow? thanks, mats ps: i tried turning off usage of precompiled headers and received the same= =20 prose as above minus the relevant warnings so maybe that would be a good=20 hint for future versions of this text. |