Visual studio without seeing my included files

This may be a very simple question, but I could not understand it, so any help is appreciated.

I have a header that is in the public folder because I want to use it in several projects, for example:

C: \ user \ geninclude \ program \ header.h

I created a new empty project with a very simple basic, basically I put

#include <program/header.h>

Then I went over to the project properties, and in VC ++ included the directories added by C: \ user \ geninclude \

but when I tried to create the program, the program informed me that it could not find header.h because it was not in the current directory or in the system path of the assembly.

I also tried in Project Properties in C / C ++ general Additional Include Directories adding C: \ user \ geninclude \ but still the same error.

I know something simple that I am missing, but I do not know that, I am very new to this, just studying.

For reference, I am using Visual Studio 2013.

Thank you in advance for your help.

UPDATE: Thank you all for your kind answers, I tried everything you told me (check the release and debugging in both instances, change / to \ and <> to "" and double-check the header and the system does not see this. This is really very strange I will continue to try ...

+4
source share
3 answers

Please check if your file is really a header file, otherwise it will not appear in the include.

, ( , ), , ( ) "" . : "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"

PS: , V++, . .

+5

→ → C/++ →

( - , VS 2008). , , (/), , ( ). , , , ; . program\header.h program/header.h. , C:\user\geninclude\program include (no \ ) #include "header.h". , .

+2

, . , cpp ++ , .

0
source

Source: https://habr.com/ru/post/1650966/


All Articles