【发布时间】:2021-04-08 06:38:10
【问题描述】:
我的系统中安装了 MSYS2 64 位。 当我尝试检查 gcc 版本时,我得到以下输出。
$ gcc --version
gcc.exe (Rev9, Built by MSYS2 project) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
但我想为使用 qt 库的项目使用特定的 mingw 版本。 当我检查我的 qt 项目的构建日志和安装文件夹时,我发现了这个。
|Project name: DataManager
|Project version: undefined
|C++ compiler for the host machine: ccache c++ (gcc 4.9.2 "c++ (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 4.9.2")
|C++ linker for the host machine: c++ ld.bfd 2.24
|Program python3 found: YES
|Found qmake: C:\Qt\5.6.3\mingw49_32\bin\qmake.EXE (5.6.3)
我假设它使用 mingw49_32 版本和 gcc 版本 4.9.2。 我想在 MSYS2 中使用相同的 gcc 版本(4.9.2)。
我怎样才能实现它?
【问题讨论】: