关于debug版本程序改为Release版本问题
我将原来debug版本改为release版本出现两个警告,然后我又将动态链接改为静
态连接出现9个错误。不清楚是怎么回事。
对于release版本编译我还不太懂,是不是在 编译=〉批构建=〉选中xxxxxx-
win32 Release=〉重建全部。
错误信息如下:
==============================================================
Generating Code...
Linking...
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to
/INCREMENTAL:NO specification
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::ios_base::Init::Init(void)" (??0Init@ios_base@std@@QAE@XZ)
already defined in libcpmt.lib(iostream.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::ios_base::Init::~Init(void)" (??1Init@ios_base@std@@QAE@XZ)
already defined in libcpmt.lib(iostream.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::_Winit::_Winit(void)" (??0_Winit@std@@QAE@XZ) already defined in
libcpmt.lib(wiostrea.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::_Winit::~_Winit(void)" (??1_Winit@std@@QAE@XZ) already defined in
libcpmt.lib(wiostrea.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)" (??1?
$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already
defined in libcpmt.lib(ios.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::erase(unsign
ed int,unsigned int)" (?erase@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z) already
defined in libcpmt.lib(iostream.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in
libcmt.lib(sprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _atof already defined in
libcmt.lib(atof.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of
other libs; use /NODEFAULTLIB:library
Release/NeuralNetwork.exe : fatal error LNK1169: one or more multiply
defined symbols found
Error executing link.exe.
NeuralNetwork.exe - 9 error(s), 2 warning(s)