VC编译常见错误.docVIP

  • 41
  • 0
  • 约 10页
  • 2016-08-23 发布于河南
  • 举报
VC编译常见错误

VC编译常见错误- - ?????????????????????????????????????? 1、Fatal Error C1010 unexpected end of file while looking for precompiled header directive 这一般是由于使用了参数/Yustdafx.h,意思是在每个文件中都应该使用#include来包含这个头文件。一般改正,就是在每个。CPP文件中包含这个文件就可以。 2、LNK2001 on __beginthreadex and __endthreadex 这是一个非常常见的链接错误。原因是由于在VC3。0以后所有的MFC类都是线程安全的,在MFC类库中使用了Thread Local Storage (TLS)提供预处理的数据。因此如果程序中包含了stfafx.h头文件或者使用了,MFC类库中的类就会使用MSVCRTx0.DLL 来进行链接。改正方法如下: On Visual C 2.x, 5.0, and 6.0: ???? Select the Project menu, and then continue Steps 2 through 5 below. On Visual C 4.x: ????? Select the Build menu. ????? Select the Settings

文档评论(0)

1亿VIP精品文档

相关文档