|
|

楼主 |
发表于 2006-6-18 07:37:00
|
显示全部楼层
Re: 求救~运行源代码有错误
多谢哦,我在工程中加了LIBCMT.LIB
但是又出现了新的问题:
错误如下:
--------------------Configuration: 游戏 - Win32 Debug--------------------
Linking...
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _rand already defined in LIBCMT.LIB(rand.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _srand already defined in LIBCMT.LIB(rand.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCMT.LIB(mbctype.obj)
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMT.LIB(crt0init.obj) : warning LNK4098: defaultlib "libc.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/游戏.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
游戏.exe - 4 error(s), 2 warning(s)
我又在工程中加了msvcrtd.lib
有错误如下:
--------------------Configuration: 游戏 - Win32 Debug--------------------
Linking...
MSVCRTD.LIB(MSVCRTD.dll) : error LNK2005: _rand already defined in LIBCMT.LIB(rand.obj)
MSVCRTD.LIB(MSVCRTD.dll) : error LNK2005: _srand already defined in LIBCMT.LIB(rand.obj)
MSVCRTD.LIB(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCMT.LIB(mbctype.obj)
LIBCMT.LIB(crt0init.obj) : warning LNK4098: defaultlib "libc.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/游戏.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
游戏.exe - 4 error(s), 1 warning(s)
请问这些问题怎么解决?
[em7] [em7] [em7] [em7] |
|