简体   繁体   English

使用eclipse CDT不在PATH中使用minGW

[英]Using minGW not in PATH with eclipse CDT

In my professional computer, I have minGW 4.5.2 installed. 在我的专业计算机上,我安装了minGW 4.5.2。 Eclipse CDT works perfectly with it. Eclipse CDT与之完美配合。 But I want to test some C++11 features. 但是我想测试一些C ++ 11功能。 So I copied my minGW 4.8.x folder from my personal PC. 因此,我从个人PC复制了minGW 4.8.x文件夹。

My problem is that eclipse uses libraries from the old minGW (witch is the PATH). 我的问题是eclipse使用旧的minGW中的库(女巫是PATH)。 I'd want to set eclipse up to use the new version of minGW. 我想设置Eclipse以使用新版本的minGW。 I know how to change the g++ used for compiling/linking but not the include libraries. 我知道如何更改用于编译/链接的g ++,但不能更改包含库。

Any idea ? 任何想法 ?

Thanks a lot. 非常感谢。

PS : I can't change the PATH in my professional computer. PS:我无法在专业计算机中更改PATH。 I run Windows 7 我运行Windows 7

You can try creating a batch file the following code, assuming the MinGW you want to use is in C:\\MinGW : 您可以尝试使用以下代码创建批处理文件,假设要使用的MinGW在C:\\ MinGW中:

set PATH=C:\MinGW\bin;%PATH%
start eclipse.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM