包含目录 [英] Include directories

查看:87
本文介绍了包含目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我想在包含文件"目录中添加一些目录.在工具->选项.

不必键入完整目录,我可以使其相对于我的.sln目录吗?除了使用环境变量.是否还有其他方法可以这样做,例如./或../?

例如,不是使用"c:\ work \ solution \ header",而是使用"../".标题". (../是.sln的目录)
是否有任何类似的用法?

谢谢.

Ang Beepeng

Hi. I want to add some directories into "Include File" at Tools -> Option.

Instead of having to type the full directories, can I make it relative to my .sln directory? Aside from using environment variable. Is there other method to do so, perhaps something like ./ or ../ ?

For example, instead of having "c:\work\solution\header", perhaps "../header". (Where ../ is directory for the .sln)
Anything similar to be use?

Thanks.

Ang Beepeng

推荐答案

我认为您不能使用相对路径,只能使用绝对路径和环境变量.我认为您在包含文件"中输入的内容字段实际上设置了INCLUDE环境变量.由于不是特定于项目的,因此它可能不会将您的项目用作起始目录.
I don't think you can use relative paths, only absolute paths and environmental variables. I think what you enter in the "Include files" field actually sets the INCLUDE environmental variable. Since that's not project specific, it probably does not use your project as a starting directory.


这篇关于包含目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆