【问题标题】:Change order of multiple paths of gcc?更改gcc多个路径的顺序?
【发布时间】:2018-09-29 20:25:30
【问题描述】:

我使用的是 Windows 10,编译器经验有限。

在命令提示符where gcc 返回:

C:\Program Files (x86)\CodeBlocks\MinGW\bin\gcc.exe C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe

如果我希望第二个优先,我该如何更改顺序?

这是因为当我执行某些 Go 代码(去 github.com/hajimehoshi/ebiten/...)时,我得到如下错误:

cc1.exe: sorry, unimplemented: 64-bit mode not compiled in..

所以它似乎是 32 位和 64 位版本不匹配。虽然我可以删除对应于 32 位的版本,但我想知道如果一个有多个,如何更改顺序。谢谢。

【问题讨论】:

  • 按照您希望它们选择的顺序设置您的 PATH。

标签: windows bash shell gcc command-line


【解决方案1】:

详细说明 miken32 的步骤是:

  1. 只需在搜索栏上搜索即可打开Advanced system settings

  2. 点击Environment variables

  1. 双击pathsystem variables

  2. 使用Move upMove down保证顺序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-17
    相关资源
    最近更新 更多