fatal error C1010 - “stdafx.h” in Visual Studio how can this be corrected?

后端 未结 3 1254
粉色の甜心
粉色の甜心 2020-12-04 14:18

I compile the following code but I get a compile error in Visual Studio that I cannot understand.

#include 

using namespace std;

int main()         


        
3条回答
  •  -上瘾入骨i
    2020-12-04 14:51

    Look at https://stackoverflow.com/a/4726838/2963099

    Turn off pre compiled headers:

    Project Properties -> C++ -> Precompiled Headers
    

    set Precompiled Header to "Not Using Precompiled Header".

提交回复
热议问题