seastaryao 发表于 2015-11-21 01:17:26

大灰狼8.02,server和DLLcontrol两个工程编译不通过是怎么回事?

大灰狼8.02,serverfiles和DLLcontrolfiles两个工程编译不通过是怎么回事。求大神帮忙解决,留个联系方式,我主动加。感激不尽!
一、编译DLLcontrolfiles出错信息如下
--------------------Configuration: DLLControl - Win32 Debug--------------------
Linking...
   Creating library Debug/Consys21.lib and object Debug/Consys21.exp
shell32.lib(shguid.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Error executing link.exe.

二、编译serverfiles出错信息如下
--------------------Configuration: Server - Win32 Debug--------------------
Linking...
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ) already defined in Server.obj
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ) already defined in Server.obj
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: _memmove already defined in Libcmtd.lib(memmove.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: _malloc already defined in Libcmtd.lib(dbgheap.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: _realloc already defined in Libcmtd.lib(dbgheap.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: _free already defined in Libcmtd.lib(dbgheap.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: _strstr already defined in Libcmtd.lib(strstr.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: _sprintf already defined in Libcmtd.lib(sprintf.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: __mbscmp already defined in Libcmtd.lib(mbscmp.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: __mbsicmp already defined in Libcmtd.lib(mbsicmp.obj)
MSVCRT.LIB(MSVCRT.dll) : error LNK2005: __beginthreadex already defined in Libcmtd.lib(threadex.obj)
LINK : warning LNK4098: defaultlib "nafxcw.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
../bin/Update/DHL2013.dat : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

DHL2013.dat - 12 error(s), 3 warning(s)


貌似是链接出来问题 link,双击无法定位出错位置。那就是库的问题,求大神解答!

li12qwe 发表于 2015-11-21 04:08:06

编译模式不对?

货货 发表于 2015-11-21 06:47:53

你拉动吧 库个毛把Debug 改成Release 组建就OK了QQ2393899497

seastaryao 发表于 2015-11-21 11:51:04

货货 发表于 2015-11-21 06:47
你拉动吧 库个毛把Debug 改成Release 组建就OK了QQ2393899497

问题解决了,3Qverymuch。
页: [1]
查看完整版本: 大灰狼8.02,server和DLLcontrol两个工程编译不通过是怎么回事?