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

前端 未结 6 1605
小鲜肉
小鲜肉 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 14:55

    You can fix this problem by adding "$(ProjectDir)" (or wherever the stdafx.h is) to list of directories under Project->Properties->Configuration Properties->C/C++->General->Additional Include Directories.

提交回复
热议问题