c++ - 使用不在 PATH 中的 minGW 和 eclipse CDT

标签 c++ windows eclipse mingw eclipse-cdt

在我的专业电脑上,我安装了 minGW 4.5.2。 Eclipse CDT 与它完美配合。 但我想测试一些 C++11 特性。所以我从我的个人电脑上复制了我的 minGW 4.8.x 文件夹。

我的问题是 eclipse 使用来自旧 minGW 的库(女巫是 PATH)。 我想设置 eclipse 以使用新版本的 minGW。 我知道如何更改用于编译/链接的 g++,但不知道如何更改包含库。

有什么想法吗?

非常感谢。

PS:我无法在我的专业计算机中更改 PATH。我运行 Windows 7

最佳答案

您可以尝试使用以下代码创建一个批处理文件,假设您要使用的 MinGW 在 C:\MinGW 中:

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

关于c++ - 使用不在 PATH 中的 minGW 和 eclipse CDT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23059001/

相关文章:

c++ - 使用 STL 映射作为结构的成员

c++ - C++代码最好的prettyprint选项是什么?

windows - PowerShell Windows 许可证类型

c++ - 虚拟处理器和高级网络 linux 和 windows

android - Cocos2dx - android apk 在启动时崩溃

c++ - bool 内存高效链表

c++ - mysql_real_connect 给出段错误 - C++

windows - .BAT 调用 .VBS 来创建 .zip - 静默运行(无界面)?

android - 物理设备不会出现,模拟器工作正常

eclipse - 如何为项目启用 MercurialEclipse 插件?