在Windows环境下的控制台上,通过qmake指令编译Qt程序时,出现 cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport "问题,百思不得骑姐,最后通过指令gcc -v查看版本号发现,gcc 版本太低 gcc version 4.4.0 (GCC),修改环境变量中的MingW目录,更新gcc版本号,gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project),再次编译,问题得到解决。
相关文章
- 10-03进行编译时提示'error: unrecognized command line option "-std=gnu11"'如何处理?
- 10-03make module失败的原因cc1: error: unrecognized command line option “-m64
- 10-03g++: error: unrecognized command line option ‘-std=C++11’
- 10-03armv8、aarch64的架构:unrecognized command line option '-mfpu=neon'
- 10-03编译openwrt时报错libfstools/overlay.c: At top level:cc1: error: unrecognized command line option '-W
- 10-03cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport "
- 10-03解决vscode编译器报错g++.exe: error: unrecognized command line option ‘--interpreter=mi‘
- 10-03编译openwrt时报错:fstools-2018-01-02-11efbf3b/libfstools/overlay.c: At top level: cc1: error: unrecognized command line option '-Wno-format-truncation' [-Werror]
- 10-03linux下安装QT5:error: unrecognized command line option ‘-fuse-ld=gold’
- 10-03ubuntu16.04安装virtualbox5.1失败 gcc:error:unrecognized command line option ‘-fstack-protector-strong’