论坛: 编程破解 标题: 来帮个忙,无法解决VC6.0下的编译错误,,,,, 复制本贴地址    
作者: erifaw [erifaw]    论坛用户   登录
帮帮菜鸟!
我将自已写的*.cpp放在VC6.0环境下编译,之后出现无法理解的错误,
错误如下:
  --------------------Configuration: mymfc - Win32 Debug--------------------
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/mymfc.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

地主 发表时间: 04/07 23:33

回复: sunyue [sunyue]   论坛用户   登录
把这个编译选项去掉 /MT

[此贴被 感觉者(sunyue) 在 04月08日00时44分 编辑过]

B1层 发表时间: 04/07 23:54

回复: erifaw [erifaw]   论坛用户   登录
还是不行,
描述错了,,
是compile通过,build时就出错了,

B2层 发表时间: 04/08 00:01

回复: sunyue [sunyue]   论坛用户   登录
抱歉,刚才没看仔细
把/MT这个编译选项去掉

B3层 发表时间: 04/08 00:05

回复: 286 [unique]   版主   登录
在文件前面加上这一行
#pragma comment(lib,"nafxcwd.lib")

B4层 发表时间: 04/08 11:37

回复: erifaw [erifaw]   论坛用户   登录
感谢你们的帮忙,,
搞定了,,
在预处理程序定义中加入
_AFXDLL
和将/MLd改为MDd就成功了,

B5层 发表时间: 04/08 11:47

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号