Error C1083: Cannot open include file: 'stdafx.h'

前端 未结 6 1637
小鲜肉
小鲜肉 2020-12-03 14:40

When I compiled this program (from C++ Programming Language 4th edition):

main.cpp

#include 
#include 
#incl         


        
6条回答
  •  醉酒成梦
    2020-12-03 15:12

    Just running through a Visual Studio Code tutorial and came across a similiar issue.

    Replace #include "stdafx.h" with #include "pch.h" which is the updated name for the precompiled headers.

提交回复
热议问题