Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create a project, and I set "Properties>Configuration Properties>C/C++>General>Additonal Include Directories " to "D:\work\test\ConsoleApplicationTest\ConsoleApplicationTest",that folder contains many files include "lib1.h",in my project I write: #include "lib1.h", when build solution, the Error list tells: Can not open sourcefile "lib1.h". But when I write: #include "D:\work\test\ConsoleApplicationTest\ConsoleApplicationTest\lib1.h" , it's OK, I don't know why?
Thanks a lot!

What I have tried:

In some of exist programs,it works well of "Properties>Configuration Properties>C/C++>General>Additonal Include Directories ", but in the new created project, it does not work, I have test in many new projects,and get the same result.
Posted
Comments
Richard MacCutchan 5-Jul-17 4:01am    
Did you check that the property gets set correctly in the C/C++>Command Line ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900