看板 PttCurrent 關於我們 聯絡資訊
※ 引述《VictorHsieh (風起鷹揚)》之銘言: : 其實 C99 已經允許這個語法了 @_@ : ※ 引述《yinyins (ㄅㄆㄇㄈ)》之銘言: : : gcc42 抱怨說語法錯誤... 好像是我的 gcc 太古板了 : : FreeBSD_4.11 + gcc42 + ptt-current_r3257 svn到3258之後... ccache gcc -O -g -Os -Wall -pipe -DBBSHOME='"/home/bbs"' -I../include -march=pentium-mmx -D__OS_MAJOR_VERSION__="2" -D__OS_MINOR_VERSION__="4" -c fav.c fav.c: In function `fav_item_allocate': fav.c:276: error: `ft' undeclared (first use in this function) fav.c:276: error: (Each undeclared identifier is reported only once fav.c:276: error: for each function it appears in.) fav.c:270: warning: unused variable `fp' *** Error code 1 Stop. Linux 2.4.27(Debian 3.1),GCC 3.3.5 該不會現在換成只有gcc4編得起來吧? @_@ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.25.104.20
yinyins: 打錯字的樣子,把 270 的 fp 改成 ft 吧 01/03 17:24
Alica:XD 沒有仔細看 01/03 18:32