Cannot open include file with Visual Studio

后端 未结 8 2000
遥遥无期
遥遥无期 2020-12-30 22:26

I have recently gone from Code::Blocks to Visual Studio, and in Code::Blocks one could just add a class and then include it straight away. However, whenever I do the same in

8条回答
  •  灰色年华
    2020-12-30 23:06

    You need to set the path for the preprocessor to search for these include files, if they are not in the project folder.

    You can set the path in VC++ Directories, or in Additional Include Directories. Both are found in project settings.

提交回复
热议问题