Visual studio 2015 gives me errors upon creating a simple test console program

前端 未结 10 847
轮回少年
轮回少年 2020-12-05 07:57

Here is the code I am using.

#include \"stdafx.h\"
#include 

int main() {
    std::cout << \"hi\";

    return 0;
}

10条回答
  •  一个人的身影
    2020-12-05 08:04

    I know I am a bit late to this but instead of messing with the path settings, in Visual Studio 2017 you can

    • right-click the project
    • select retarget projects
    • select the latest or any new version of windows SDK and click OK

    This will automatically take care of all include paths and libraries.

提交回复
热议问题