How to include header files in Visual Studio 2008?

后端 未结 4 755
感动是毒
感动是毒 2021-02-14 18:03

I am currently trying to compile a simple program that includes two header files. I see them in the Solution Explorer, where I included them through \"include existing files\".

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-14 18:33

    When including files the compiler first looks in the current directory (the directory which contains the source .cpp file) then it looks in the additional include directories. If FileWrite.h isn't in the same directory as your source file check the additional included directories.

    In the project's property page look at the additional include directories and see if they include the folder in which FileWrite.h is in.

提交回复
热议问题