• 5228阅读
  • 0回复

[提问]qt5 静态编译出错,请帮忙看看 [复制链接]

上一主题 下一主题
离线aileenyuxiao
 

只看楼主 倒序阅读 楼主  发表于: 2013-01-15
http://www.qtcn.org/bbs/read-htm-tid-52236.html


按照上面帖子方法编译出错,应该是库的问题,这个怎么解决呢?



       link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
'*'" /MANIFEST /MANIFESTFILE:E:\qt\qt-everywhere-opensource-src-5.0.0\qtbase\bi
\qmlprofiler.exe.embed.manifest /OUT:E:\qt\qt-everywhere-opensource-src-5.0.0\q
base\bin\qmlprofiler.exe @C:\Users\YAODAN~1.ZHA\AppData\Local\Temp\nm87C9.tmp
IBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.
ib(MSVCR100.dll)
IBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSV
R100.dll)
IBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MS
CR100.dll)
IBCMT.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(M
VCR100.dll)
IBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.l
b(MSVCR100.dll)
IBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminat
@@YAXXZ) already defined in MSVCRT.lib(MSVCR100.dll)
IBCMT.lib(rand_s.obj) : error LNK2005: _rand_s already defined in MSVCRT.lib(MS
CR100.dll)
IBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCR
.lib(MSVCR100.dll)
IBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(
initexe.obj)
IBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(
initexe.obj)
IBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(
initexe.obj)
IBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(
initexe.obj)
IBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRT
lib(MSVCR100.dll)
IBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRT.lib(MS
CR100.dll)
IBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MS
CR100.dll)
IBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVC
100.dll)
IBCMT.lib(crt0.obj) : error LNK2005: _mainCRTStartup already defined in MSVCRT.
ib(crtexe.obj)
IBCMT.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in MSVC
T.lib(MSVCR100.dll)
  Creating library E:\qt\qt-everywhere-opensource-src-5.0.0\qtbase\bin\qmlprofi
er.lib and object E:\qt\qt-everywhere-opensource-src-5.0.0\qtbase\bin\qmlprofil
r.exp
INK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; us
/NODEFAULTLIB:library
INK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us
/NODEFAULTLIB:library
:\qt\qt-everywhere-opensource-src-5.0.0\qtbase\bin\qmlprofiler.exe : fatal erro
LNK1169: one or more multiply defined symbols found
MAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
VC\BIN\link.EXE"' : return code '0x491'
top.
MAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
VC\BIN\nmake.exe"' : return code '0x2'
top.
MAKE : fatal error U1077: 'cd' : return code '0x2'
top.
MAKE : fatal error U1077: 'cd' : return code '0x2'
top.
MAKE : fatal error U1077: 'cd' : return code '0x2'
top.
快速回复
限100 字节
 
上一个 下一个