QxOrm admin wrote:I have built static QxOrm successfully
Oki, thanx to have tested and to confirm that static build works correctly with your computer too
Could you name the static library after "LibQxOrm.lib, LibQxOrmd.lib"
It will be done for the next release...
Bad news.
When I build my application with static QxOrm, I get many errors(But no error in shared mode):
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmtd.lib(xlock.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z) already defined in libcpmtd.lib(stdthrow.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: struct std::_Iterator_base12 * * __thiscall std::_Container_base12::_Getpfirst(void)const " (?_Getpfirst@_Container_base12@std@@QBEPAPAU_Iterator_base12@2@XZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) already defined in libcpmtd.lib(xthrow.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) already defined in libcpmtd.lib(xthrow.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const " (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static void __cdecl std::locale::facet::operator delete(void *)" (??3facet@locale@std@@SAXPAX@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::locale __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pubimbue(class std::locale const &)" (?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static class std::locale const & __cdecl std::locale::classic(void)" (?classic@locale@std@@SAABV12@XZ) already defined in libcpmtd.lib(locale0.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static void * __cdecl std::locale::facet::operator new(unsigned int)" (??2facet@locale@std@@SAPAXI@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)" (?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::codecvt<char,char,int>::codecvt<char,char,int>(unsigned int)" (??0?$codecvt@DDH@std@@QAE@I@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: virtual __thiscall std::codecvt<char,char,int>::~codecvt<char,char,int>(void)" (??1?$codecvt@DDH@std@@MAE@XZ) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sgetn(char *,__int64)" (?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPAD_J@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sgetc(void)" (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sbumpc(void)" (?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::locale __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::getloc(void)const " (?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static void __cdecl std::locale::facet::operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3facet@locale@std@@SAXPAXABU_DebugHeapTag_t@2@PADH@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::_Yarn<char> & __thiscall std::_Yarn<char>::operator=(char const *)" (??4?$_Yarn@D@std@@QAEAAV01@PBD@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static unsigned int __cdecl std::codecvt<char,char,int>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$codecvt@DDH@std@@SAIPAPBVfacet@locale@2@PBV42@@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "private: void __thiscall std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int)" (?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::locale::id::operator unsigned int(void)" (??Bid@locale@std@@QAEIXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "private: __thiscall std::locale::_Locimp::_Locimp(class std::locale::_Locimp const &)" (??0_Locimp@locale@std@@AAE@ABV012@@Z) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static void * __cdecl std::locale::facet::operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2facet@locale@std@@SAPAXIABU_DebugHeapTag_t@2@PADH@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "struct std::_DebugHeapTag_t const & __cdecl std::_DebugHeapTag_func(void)" (?_DebugHeapTag_func@std@@YAABU_DebugHeapTag_t@1@XZ) already defined in libcpmtd.lib(xdebug.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: virtual __thiscall std::locale::_Locimp::~_Locimp(void)" (??1_Locimp@locale@std@@MAE@XZ) already defined in LibQxOrmd.lib(QxTools.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::operator>>(unsigned int &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall std::ios_base::fail(void)const " (?fail@ios_base@std@@QBE_NXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(bool)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "struct std::_Smanip<__int64> __cdecl std::setprecision(__int64)" (?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z) already defined in libcpmtd.lib(iomanip.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(double)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z) already defined in LibQxOrmd.lib(QxSerialize_QMatrix.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall std::ios_base::precision(void)const " (?precision@ios_base@std@@QBE_JXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall std::ios_base::precision(__int64)" (?precision@ios_base@std@@QAE_J_J@Z) already defined in libcpmtd.lib(iomanip.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Swap_all(struct std::_Container_base12 &)" (?_Swap_all@_Container_base12@std@@QAEXAAU12@@Z) already defined in QtCored.lib(qglobal.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static unsigned int __cdecl std::numeric_limits<unsigned int>::max(void)" (?max@?$numeric_limits@I@std@@SAIXZ) already defined in Admin.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::operator>>(int &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z) already defined in Admin.obj
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: int __thiscall type_info::before(class type_info const &)const " (?before@type_info@@QBEHABV1@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: bool __thiscall type_info::operator!=(class type_info const &)const " (??9type_info@@QBE_NABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: __wassert already defined in LIBCMTD.lib(wassert.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: __invalid_parameter already defined in LIBCMTD.lib(invarg.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: __CrtDbgReportW already defined in LIBCMTD.lib(dbgrptw.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) already defined in LIBCMTD.lib(stdexcpt.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in LIBCMTD.lib(stdexcpt.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) already defined in LIBCMTD.lib(stdexcpt.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _wcslen already defined in LIBCMTD.lib(wcslen.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _mbtowc already defined in LIBCMTD.lib(mbtowc.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) already defined in LIBCMTD.lib(stdexcpt.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _wctomb already defined in LIBCMTD.lib(wctomb.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: bool __thiscall type_info::operator==(class type_info const &)const " (??8type_info@@QBE_NABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _isdigit already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _tolower already defined in LIBCMTD.lib(tolower.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _isspace already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _iswspace already defined in LIBCMTD.lib(_wctype.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: "public: char const * __thiscall type_info::_name_internal_method(struct __type_info_node *)const " (?_name_internal_method@type_info@@QBEPBDPAU__type_info_node@@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1> Creating library Z:\DotNet Projects\CardSystem\Debug\CardSystem.CppServer.lib and object Z:\DotNet Projects\CardSystem\Debug\CardSystem.CppServer.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall QAbstractSocket::waitForDisconnected(int)" (?waitForDisconnected@QAbstractSocket@@QAE_NH@Z) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: enum QAbstractSocket::SocketState __thiscall QAbstractSocket::state(void)const " (?state@QAbstractSocket@@QBE?AW4SocketState@1@XZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: void __thiscall QAbstractSocket::disconnectFromHost(void)" (?disconnectFromHost@QAbstractSocket@@QAEXXZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: unsigned short __thiscall QAbstractSocket::localPort(void)const " (?localPort@QAbstractSocket@@QBEGXZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: __thiscall QHostAddress::~QHostAddress(void)" (??1QHostAddress@@QAE@XZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: class QString __thiscall QHostAddress::toString(void)const " (?toString@QHostAddress@@QBE?AVQString@@XZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: class QHostAddress __thiscall QAbstractSocket::localAddress(void)const " (?localAddress@QAbstractSocket@@QBE?AVQHostAddress@@XZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall QTcpSocket::~QTcpSocket(void)" (??1QTcpSocket@@UAE@XZ) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall QAbstractSocket::waitForConnected(int)" (?waitForConnected@QAbstractSocket@@QAE_NH@Z) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: void __thiscall QAbstractSocket::connectToHost(class QString const &,unsigned short,class QFlags<enum QIODevice::OpenModeFlag>)" (?connectToHost@QAbstractSocket@@QAEXABVQString@@GV?$QFlags@W4OpenModeFlag@QIODevice@@@@@Z) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>LibQxOrmd.lib(QxTransaction.obj) : error LNK2019: unresolved external symbol "public: __thiscall QTcpSocket::QTcpSocket(class QObject *)" (??0QTcpSocket@@QAE@PAVQObject@@@Z) referenced in function "public: void __thiscall qx::service::QxTransaction::executeClient(class qx::service::IxService *,class QString const &)" (?executeClient@QxTransaction@service@qx@@QAEXPAVIxService@23@ABVQString@@@Z)
1>Z:\DotNet Projects\CardSystem\Debug\\CardSystem.CppServer.exe : fatal error LNK1120: 11 unresolved externals
It seems that QxOrm use many functions only existed in shared library of VC runtime. I sent my project to your email. Could you check it please.