I try to include an open开发者_StackOverflow社区source library for instance log4cpp but i am facing to an include problem. VS2005 cannot open files quoted like:
I try to include an open开发者_StackOverflow社区source library for instance log4cpp but i am facing to an include problem. VS2005 cannot open files quoted like:
<log4cplus/config.hxx>
!
But I've tried to replace the slashes with backslashed like: "log4cplus\config.hxx" and successfully it works.
So this is certainly releated to VS project settings. Does anyone knows what option I have to change in the project as I don't want to modify the includes this library?
TIA
You have to add the parent directory of log4cplus
to the Additional Include Directories
property of your C++ project.
The documentation for the /I
compiler option explains how to do that.
精彩评论