-
July 12th, 2012, 04:18 PM
#1
UnitTest++ LNK2005 ERROR
------ Build started: Project: MatchServer, Configuration: BRZ_Release_publish Win32 ------
Linking...
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmt.lib(xlock.obj)
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
cryptlib2003.lib(algparam.obj) : warning LNK4218: non-native module found; restarting link with /LTCG
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmt.lib(xlock.obj)
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
UnitTest++.vsnet2003.lib(Test.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
libcp.lib(stdhndlr.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmt.lib(xlock.obj)
libcp.lib(stdhndlr.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
Runtime/MatchServer.exe : fatal error LNK1169: one or more multiply defined symbols found
Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\Source 07-2012\Stable\MatchServer\BRZ_Release_publish\BuildLog.htm"
MatchServer - 11 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 6 succeeded, 1 failed, 0 skipped
-
July 12th, 2012, 05:26 PM
#2
Re: UnitTest++ LNK2005 ERROR
Seems like your UnitTest lib is already linked with MSVC runtime. Try linking with 'Ignore All Default Libraries' set as Yes.
-
July 12th, 2012, 07:37 PM
#3
Re: UnitTest++ LNK2005 ERROR
-
July 13th, 2012, 12:20 AM
#4
Re: UnitTest++ LNK2005 ERROR
1. Press "Alt + F7" or follow the menu options Project -> Properties
2. Click "Configuration Properties" and go to "Linker"
3. In the further options, select "Input"
4. At the right side (in the properties window), you'll find "Ignore All Default Libraries"
-
July 13th, 2012, 12:29 AM
#5
Re: UnitTest++ LNK2005 ERROR
Tried it but it gives me 700 more errors.. what now?
-
July 13th, 2012, 01:08 AM
#6
Re: UnitTest++ LNK2005 ERROR
Originally Posted by daemontje
Tried it but it gives me 700 more errors.. what now?
With this comprehensive description, I can only offer LNK2005.
-
July 13th, 2012, 04:01 AM
#7
Re: UnitTest++ LNK2005 ERROR
Originally Posted by daemontje
Tried it but it gives me 700 more errors.. what now?
700 is reasonable and sure OK, please re-post with a better clarification
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|