开发者

Failed to find file with open source library (in VS2005), slash and backslash

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜