0

我正在尝试在 Mac OS X 10.6.8 上安装 gcc 3.4.6;要安装 gcc 3.4.6,我需要一个编译器,并且不知何故我能够安装 gcc-4.2。现在使用 4.2 我正在尝试安装 3.4.6,这会引发错误

./gcc.c:716: warning: string length ‘2483’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:723: warning: string length ‘636’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:906: warning: string length ‘529’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:924: warning: string length ‘608’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:1095: error: expected expression before ‘,’ token
./gcc.c:1506: warning: string length ‘833’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c: In function ‘main’:
./gcc.c:6261: warning: format not a string literal and no format arguments
make[1]: *** [gcc.o] Error 1
make: *** [all-gcc] Error 2

任何有关为什么会出现此错误以及解决方案是什么的帮助表示赞赏。

4

1 回答 1

0

你不能使用新版本的 gcc 来编译一个非常旧的版本,因为它会导致大量的语法错误。也许你应该找到一个预编译的版本。

于 2013-02-01T02:59:51.817 回答