2013-02-01 60 views
0

我想在Mac OS X 10.6.8上安裝gcc 3.4.6;要安裝gcc 3.4.6我需要一個編譯器,並且我能夠安裝gcc-4.2。現在,使用4.2我想安裝3.4.6會拋出一個錯誤在Mac OS X上使用gcc 4.2安裝gcc 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 

爲什麼我得到這個錯誤任何幫助和如何解決表示讚賞。

+0

「現在使用4.2我正在嘗試安裝3.4.6,它將引發錯誤[...]」*您是如何*嘗試安裝它?你提供給'gcc-4.2'的標誌是什麼? – Johnsyweb

+0

爲什麼你要在你目前的系統上運行這樣的博物館作品? – vonbrand

回答

0

你不能使用新版本的gcc編譯一個很舊的版本,因爲它會導致大量的語法錯誤。也許你應該找到一個precomipled版本。

+0

我會得到什麼樣的語法錯誤? – Johnsyweb

+0

Oldish GCC被編寫成最不常見的C語言特性,由真正可怕的C編譯器編譯(是的,Sun,我在想你),所以這應該不是問題。 – vonbrand