vc6.0编译时常见错误及改正方法

错误1: unexpected end of file while looking for precompiled header directive
改正方法:工程->设置->C/C++,在分类中选中“预编译的头文件”,然后选中“自动使用预补偿页眉”或“不使用预补偿页眉”

错误2:unresolved external symbol __mbctype或unresolved external symbol ___argc
改正方法:工程->设置->C/C++,在分类中选中“常规”,然后在预处理程序定义下添加“_AFXDLL”

错误3:Please use the /MD switch for _AFXDLL builds
改正方法:工程->设置->C/C++,在分类中选中“Code Generation”,然后在Use run-time library下选中Multithreaded DLL或Debug Multithreaded DLL

posted @ 2010-04-24 01:18  拂晓风起-Kenko  阅读(726)  评论(0编辑  收藏  举报