problem when build machserver in realese mode

Results 1 to 9 of 9
  1. #1
    Member gunzhelp is offline
    MemberRank
    Jan 2011 Join Date
    90Posts

    problem when build machserver in realese mode

    hello,

    i have problem when build machserver in realese mode

    i use unitest 1.2

    thanks.

    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)
    UnitTest++.vsnet2003.lib(TestRunner.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(TestRunner.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
    UnitTest++.vsnet2003.lib(TestRunner.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
    UnitTest++.vsnet2003.lib(TestRunner.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
    UnitTest++.vsnet2003.lib(XmlTestReporter.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(XmlTestReporter.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
    UnitTest++.vsnet2003.lib(XmlTestReporter.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
    UnitTest++.vsnet2003.lib(XmlTestReporter.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)
    UnitTest++.vsnet2003.lib(TestRunner.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(TestRunner.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
    UnitTest++.vsnet2003.lib(TestRunner.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
    UnitTest++.vsnet2003.lib(TestRunner.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
    UnitTest++.vsnet2003.lib(XmlTestReporter.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(XmlTestReporter.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmt.lib(xlock.obj)
    UnitTest++.vsnet2003.lib(XmlTestReporter.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in libcpmt.lib(xmutex.obj)
    UnitTest++.vsnet2003.lib(XmlTestReporter.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


  2. #2
    igunz.net Dawson is offline
    LegendRank
    Feb 2010 Join Date
    ::1 (Canada BC)Location
    2,581Posts

    Re: problem when build machserver in realese mode

    Linker errors, you're not building all your libs right. Either that or you're linking them wrong.


    Google information on libraries and linking libraries then try again. I won't spoon feed you.

  3. #3
    Member gunzhelp is offline
    MemberRank
    Jan 2011 Join Date
    90Posts

    Re: problem when build machserver in realese mode

    i already build UnitTest++.vsnet2003.lib

    i compli in debug mode ok (machserverD.exe create ok), but in release mode it error

    already defined in libcpmt.lib(xmutex.obj)

  4. #4
    igunz.net Dawson is offline
    LegendRank
    Feb 2010 Join Date
    ::1 (Canada BC)Location
    2,581Posts

    Re: problem when build machserver in realese mode

    Read up on libraries and compiling projects with library dependencies I already know what you're doing wrong but you have to learn for yourself.

  5. #5
    Member gunzhelp is offline
    MemberRank
    Jan 2011 Join Date
    90Posts

    Re: problem when build machserver in realese mode

    please help me,

    i try all version unitest 1.0 -> 1.4

    but stil same error :(

  6. #6
    igunz.net Dawson is offline
    LegendRank
    Feb 2010 Join Date
    ::1 (Canada BC)Location
    2,581Posts

    Re: problem when build machserver in realese mode

    its not an issue with untitest++ its an issue with you.

  7. #7
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: problem when build machserver in realese mode

    LOL and the threads start.

  8. #8
    Member gunzhelp is offline
    MemberRank
    Jan 2011 Join Date
    90Posts

    Re: problem when build machserver in realese mode

    hello,

    can you share me UnitTest++.vsnet2003.lib :(

    my problem because UnitTest++.vsnet2003.lib and libcpmt.lib have same defined :(

  9. #9
    igunz.net Dawson is offline
    LegendRank
    Feb 2010 Join Date
    ::1 (Canada BC)Location
    2,581Posts

    Re: problem when build machserver in realese mode

    No, the problem is you... thread closed you're doing it wrong.



Advertisement