EVC编译出现is not a precompiled header file created with this compiler 原因:
同时有.c和.cpp文件的工程会出这个错的,就算不出这个错也会出其它的错,解决方法很简单,把你的.c改名为.cpp,一切都ok了
在你的*.cpp中开头加上 #include "Stdafx.h" 万事大吉
本文解决了EVC编译过程中出现的isnotaprecompiledheaderfilecreatedwiththiscompiler错误。当工程同时包含.c和.cpp文件时会出现此问题。解决办法是将.c文件改为.cpp,并在.cpp文件头部加入#include Stdafx.h。
EVC编译出现is not a precompiled header file created with this compiler 原因:
同时有.c和.cpp文件的工程会出这个错的,就算不出这个错也会出其它的错,解决方法很简单,把你的.c改名为.cpp,一切都ok了
在你的*.cpp中开头加上 #include "Stdafx.h" 万事大吉
514
1万+
5472