为MinGW添加额外的include / lib路径 [英] Add extra include/lib paths to MinGW

查看:1122
本文介绍了为MinGW添加额外的include / lib路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加一些额外的include / lib目录,除了MinGW的默认目录,以便在编译时进行搜索。这是因为我目前安装MinGW的硬盘几乎已满,所以我不得不将Qt安装到我的第二个。因此,我怎样才能让MinGW默认包含Qt文件?

I would like to add some extra include/lib directories besides the default ones for MinGW to search upon compilation. The reason for this is because the hard drive I currently have MinGW installed into is nearly full and so I had to install Qt into my second one instead. Thus, how can I have MinGW include the Qt files by default?

推荐答案

您可以设置环境变量包含目录的CPLUS_INCLUDE_PATH 和库目录的 LIBRARY_PATH 。更多信息可以在影响GCC的环境变量中找到

You can set environment variables CPLUS_INCLUDE_PATH for include directories and LIBRARY_PATH for library directories. More information can be found in Environment Variables Affecting GCC

这篇关于为MinGW添加额外的include / lib路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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