无法找到带有开源库的文件(在VS2005中)、斜杠和反斜杠
我尝试包含一个开源库,例如 log4cpp,但我面临包含问题。 VS2005无法打开引用如下的文件:
!
但我尝试用反斜杠替换斜杠,例如:“log4cplus\config.hxx”并成功运行。
所以这肯定和VS项目设置有关。有谁知道我必须在项目中更改什么选项,因为我不想修改包含此库?
TIA
I try to include an opensource 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将
log4cplus
的父目录添加到 C++ 项目的Additional Include Directoryies
属性中。/I
编译器选项的文档解释了如何做到这一点。You have to add the parent directory of
log4cplus
to theAdditional Include Directories
property of your C++ project.The documentation for the
/I
compiler option explains how to do that.