locked
Linking building error UnitTest++ RRS feed

  • Question

  • User-291481001 posted

    My project from 2003VS is getting an error on build It needs to be build but I don't know whats wrong.

    ------ 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

    Please help me project is in, C++/C#

    Thursday, July 12, 2012 5:06 PM

All replies