fatal error C1010: unexpected end of file while looking for precompiled header directive

fatal error C1010: unexpected end of file while looking for precompiled header directive

是新加的类里没加入头文件stdafx.h
方法1:在新增加的类的文件前#include "stdafx.h"
方法2:在project->settings->C\C++ ->project options里的/Yu"stdafx.h" 删除

你可能感兴趣的:(fatal error C1010: unexpected end of file while looking for precompiled header directive)