更改gcc的多个路径的顺序?

时间:2018-09-29 20:25:31

标签: windows bash shell gcc command-line

我使用的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位相对应的版本,但我想知道如果一个有多个,如何更改顺序。谢谢。

1 个答案:

答案 0 :(得分:0)

要详细说明miken32,步骤如下:

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

  2. 单击Environment variables

enter image description here

  1. 双击path下的system variables enter image description here

  2. 使用Move upMove down确保顺序。 enter image description here