小编syr*_*inx的帖子

gcc 无法识别的命令行选项“-V”和“-qversion”与 autoconf

使用 gcc 4.7.2 和 autoconf 2.69 进行编译时,我经常会在 configure.log 中得到诸如此类的结果。例子:

configure:3091: $? = 0 
configure:3080: gcc -V >&5 
gcc: error: unrecognized command line option '-V' 
gcc: fatal error: no input files compilation terminated. 
configure:3091: $? = 1 
configure:3080: gcc -qversion >&5 
gcc: error: unrecognized command line option '-qversion' 
gcc: fatal error: no input files compilation terminated. 
configure:3091: $? = 1 
configure:3111: checking whether the C compiler works 
configure:3133: gcc -march=x86-64 -mtune=generic -Os -pipe -Wl,-O1 conftest.c >&5
configure:3137: $? = 0 
configure:3185: …
Run Code Online (Sandbox Code Playgroud)

linux gcc autoconf

22
推荐指数
1
解决办法
4万
查看次数

标签 统计

autoconf ×1

gcc ×1

linux ×1