C++里,#include <stdafx.h>为什么会错误

2025-02-28 13:43:06
推荐回答(1个)
回答1:

1. stdafx.h是当前工程自己的文件,一般用#include "stdafx.h",如果你把当前工程头文件所在目录加入include directories,才能用<>
2. 这个错误和这个包含毫无关系。似乎你修改了预编译头文件设置指向了aa.h/aa.cpp,实际它应该是stdafx.h/stdafx.cpp,ALT+F7然后在工程设置中慢慢找,C++项中的precompile header有关