Cannot open include file with Visual Studio

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

    I found this post because I was having the same error in Microsoft Visual C++. (Though it seems it's cause was a little different, than the above posted question.)

    I had placed the file, I was trying to include, in the same directory, but it still could not be found.

    My include looked like this: #include

    But When I changed it to this: #include "ftdi.h" then it found it.

提交回复
热议问题