作者Alica (Torsades de Pointes)
看板PttCurrent
标题Re: mbbsd/fav.c 编译失败 @@
时间Tue Jan 3 14:18:19 2006
※ 引述《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
1F:推 yinyins: 打错字的样子,把 270 的 fp 改成 ft 吧 01/03 17:24
2F:推 Alica:XD 没有仔细看 01/03 18:32