Cannot open include file with Visual Studio

后端 未结 8 2003
遥遥无期
遥遥无期 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 22:49

    For me, it helped to link the projects current directory as such:

    In the properties -> C++ -> General window, instead of linking the path to the file in "additional include directories". Put "." and uncheck "inheret from parent or project defaults".

    Hope this helps.

提交回复
热议问题