Environments - MSYS2 这里说的很清楚了
尽管我们基本就使用 ucrt64 环境,但其它环境的源,我们也一并改了。以 mingw64 为例,就是打开前述...
首先是我们需要安装 MSYS2,这个在 https://www.msys2.org/ 即可下载,MSYS2 可以用来编译 Windows(Native)的二进制文件,然后用起来又很有 Linux 的那种方便的感觉,然后我们选择一个环境,我这里会选择 mingw64 环境,用 MSVCRT(微软现在有两个运行时,分别是 UCRT 和 MSVCRT,MSVCRT 是比较老的,当然选择什么无所谓)。
一路回车即可,最后命令行窗口大概率会退出,重新在开始菜单打开即可(如果没有退出,可以直接执行下面的命令) pacman-S--neededbase-devel mingw-w64-ucrt-x86_64-clang mingw-w64-ucrt-x86_64-clang-tools-extra 等待安装完成,输入clang -v检验之前步骤是否正确 配置环境变量 打开任务栏搜索框,搜索PATH,点击打开 ...
执行命令pacman -Ss gcc会列出很多结果,我们一般使用mingw64系列的这个: 另外还会看到一个msys系列的 GCC ,但是听说过好像有些接口差异/性能之类的原因,我不打算使用。 ucrt64和clang64系列应该是前不久才增加的,还没有研究过。 执行命令pacman -S mingw-w64-x86_64-gcc安装 MinGW GCC 。
Binary ecppack.exe from mingw-w64-prjtrellis is crashing on MINGW64 and UCRT64: # ecppack Mingw-w64 runtime failure: 32 bit pseudo relocation at 00007FF6E40F66A1 out of range, targeting 00007FFAB9EEDA10, yielding the value 00000003D5DF736B. I'm confused about the 32 bit relocation...
line 80: including /etc/pacman.d/mirrorlist.mingw debug: config: new section 'ucrt64' debug: config file /etc/pacman.conf, line 83: including /etc/pacman.d/mirrorlist.mingw debug: config: new section 'clang32' debug: config file /etc/pacman.conf, line 86: including /etc/pacman.d/...
1pacman -S --needed base-devel mingw-w64-ucrt-x86_64-clang mingw-w64-ucrt-x86_64-gdb writeYwhen asked if you agree to install the required dependencies. At this point, we are done with the installation. Close theMSYS2 MSYSterminal by writing: ...
clang64.exe mingw32.exe⽤mingw-w64-i686-toolchain 编译。mingw64.exe⽤mingw-w64-x86_64-toolchain编译。msys2.exe ucrt64.exe 注意:安装MSYS⼯具⼀定在MSYS2 MSYS(msys2_shell.cmd)窗⼝中进⾏。查看gcc的版本 启动MSYS2 MinGW 64-bit ,在mingw64.exe窗⼝中查看gcc的版本。屏幕显⽰如下:...
||Name|Package prefix|---|---|---||msys|MSYS|None|mingw64|MINGW64|mingw-w64-x86_64-|ucrt64|UCRT64|mingw-w64-ucrt-x86_64-|clang64|CLANG64|mingw-w64-clang-x86_64-|mingw32|MINGW32|mingw-w64-i686-|clang32|CLANG32|mingw-w64-clang-i686-|clangarm64|CLANGARM64|mingw-w64-clang-a...