在 Linux gcc 4.1.2 版中,我收到错误消息"cc: unrecognized option '-Xa'"。关于这个编译器选项的任何想法'-Xa'。但是它在 solaris gcc 3.4.3 版本中编译。
1147 次
2 回答
0
-Xa is a Sun C compiler option.
From Man Page cc.1:
-X[c|a|t|s]
Specifies the degree of conformance to the ISO C stan-
dard[...]
a This is the default compiler mode. ISO C plus K&R
C compatibility extensions, with semantic changes
required by ISO C. Where K&R C and ISO C specify
different semantics for the same construct, the
compiler uses the ISO C interpretation. If the -Xa
option is used in conjunction with the -xtransi-
tion option, the compiler issues warnings about
the different semantics. The predefined macro
__STDC__ has a value of 0 with the -Xa option.
于 2014-03-21T14:27:05.773 回答
0
但是,输出是“cc ...”。你确定你使用的是 gcc。不是其他编译器(例如 SUN cc)?
您可以在 Solaris、HPUX、AIX 等上安装 gcc,但通常不能在其他环境(包括 linux)中安装专有的 cc 编译器。
于 2012-04-19T06:05:35.017 回答