Cannot open include file with Visual Studio

后端 未结 8 1914
遥遥无期
遥遥无期 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:13

    Go to your Project properties (Project -> Properties -> Configuration Properties -> C/C++ -> General) and in the field Additional Include Directories add the path to your .h file.

    And be sure that your Configuration and Platform are the active ones. Example: Configuration: Active(Debug) Platform: Active(Win32).

提交回复
热议问题