VS2010 编译-Debug版本可以Release版本不行

chenshuangxi123 2012-01-07 12:01:11
1>------ 已启动全部重新生成: 项目: SfuCtl, 配置: Release Win32 ------
1>生成启动时间为 2012-1-7 11:50:16。
...
1>nafxcw.lib(dcmeta.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>libcpmt.lib(syserror.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>libcpmt.lib(locale0.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxcustomcolorspropertypage.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxstandardcolorspropertypage.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxcolorpropertysheet.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(oledocvw.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(viewedit.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxribbonkeyboardcustomizedialog.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxribboncommandslistbox.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxcolorpickerctrl.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxribbonprogressbar.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxribbonslider.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxribboncheckbox.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(afxribbonlinkctrl.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(olelink.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>nafxcw.lib(oledocob.obj) : error LNK2001: 无法解析的外部符号 @__security_check_cookie@4
1>libcpmt.lib(xthrow.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmt.lib(syserror.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>nafxcw.lib(dlgfr.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmt.lib(xthrow.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmt.lib(syserror.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmt.lib(locale0.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxstandardcolorspropertypage.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxcolorpropertysheet.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(oledocvw.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(dcmeta.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonkeyboardcustomizedialog.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboncommandslistbox.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxcolorpickerctrl.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxcustomcolorspropertypage.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonslider.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboncheckbox.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonlinkctrl.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(viewedit.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(oledocob.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(olesvr2.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboncombobox.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonprogressbar.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(viewprnt.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(dcprev.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(bardlg.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(olelink.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxtoolbarnamedialog.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxacceleratorkeyassignctrl.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(oledlgs2.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(olecli3.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(appprnt.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(dockcont.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(ccdata.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxtoolbarscommandslistbox.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxtaskspane.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonundobutton.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxoutlookbarpaneadapter.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(dlgprnt.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxcolordialog.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(dlgclr.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxcolormenubutton.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboncolorbutton.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxsmartdockingguide.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxtoolbareditboxbutton.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxtoolbarslistcheckbox.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(winctrl3.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(oledoctg.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonstatusbarpane.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonlabel.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxsmartdockinghighlighterwnd.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribbonbuttonsgroup.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(winctrl4.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboncustomizedialog.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(oledoccl.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboninfo.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" (??_7type_info@@6B@)
1>nafxcw.lib(afxribboninfoloader.obj) : error LNK2001: 无法解析的外部符号 "const type_info::`vftable'" 1>libcpmt.lib(xthrow.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmt.lib(syserror.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>ComAction.obj : error LNK2001: 无法解析的外部符号 _memmove
1>libcpmt.lib(syserror.obj) : error LNK2001: 无法解析的外部符号 _memmove
1>nafxcw.lib(afxcolorbutton.obj) : error LNK2001: 无法解析的外部符号 _atoi
1>nafxcw.lib(afxbutton.obj) : error LNK2001: 无法解析的外部符号 _atoi
1>nafxcw.lib(afxframeimpl.obj) : error LNK2001: 无法解析的外部符号 _atoi
1>ComAction.obj : error LNK2001: 无法解析的外部符号 _atoi
1>nafxcw.lib(winutil.obj) : error LNK2001: 无法解析的外部符号 _atoi
1>nafxcw.lib(afxtoolbarmenubutton.obj) : error LNK2001: 无法解析的外部符号 __mbsinc
...
1>libcpmt.lib(iosptrs.obj) : error LNK2001: 无法解析的外部符号 _abort
1>syunew3d.lib(Nt_dll.obj) : error LNK2001: 无法解析的外部符号 _strnicmp
1>OLDNAMES.lib(strnicmp.obj) : error LNK2001: 无法解析的外部符号 _strnicmp
1>E:\WorkSpace\ProjectDir\SVN_chenshuangxi\SfuCtl_V4\Release\SfuCtl.exe : fatal error LNK1120: 188 个无法解析的外部命令
1>
1>生成失败。
1>
1>已用时间 00:00:18
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
...全文
1799 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
DE8UG 2014-02-27
  • 打赏
  • 举报
回复
5楼正解!多谢了!确实多写了一个
ieff 2012-08-03
  • 打赏
  • 举报
回复
要把RELEASE下的 去除特定链接库 里的选项去掉 release 下需要lib 和 libcmt
chenshuangxi123 2012-01-13
  • 打赏
  • 举报
回复
Debug和Release版本的libs一样,我一一对应检查过,后来将Release版本的静态调用MFC库改为动态调用MFC库就好了,但根源处还不清楚。
ITDeng 2012-01-07
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 vctrane_007 的回复:]

release版编译的时候,依赖库设置和debug不一样。仔细检查一下
[/Quote]
配置不一样的,是不是有lib在DeBUG上加了,在Release没加?
jackyjkchen 2012-01-07
  • 打赏
  • 举报
回复
就是依赖库问题,在连接器选项里,“输入”子项
vctrane_007 2012-01-07
  • 打赏
  • 举报
回复 1
release版编译的时候,依赖库设置和debug不一样。仔细检查一下

64,639

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧