errorLNK2001:unresolvedexternalsymbol__endthreadex错误的处理办法
来源:优易学  2011-12-10 16:47:19   【优易学:中国教育考试门户网】   资料下载   IT书店
 #include <iostream.h>
  #include <afx.h>//CString结构的头文件afx.h
  void main()
  {
  CString str="abc";
  str.MakeUpper();//转为大写
  cout<<str<<endl;
  }
  在调试c++程序时,出现错误提示:
  1.error C2065: 'CString' : undeclared identifier或
  2.nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
  处理办法:
  1.检查是否包含头文件afx.h
  2.打开project->settings->general->microsoft foundation classes->
  选use MFC in a static library
  或选 use MFC in a shared DLL(需要把MFC的动态库放在system32文件夹下) .

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训