前后加
#ifdef BBSMAIN
#endif
不要说是我说的。将来跟代码出了错你自己负责解决...
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: 需要声明或者定义什么么?
: 我把src/bcache.c文件修改了一下
: 目的是卸任版主的时候询问是否去掉版主权限,可以卸任而保留B权限作为奖励。
: 774-775行:改为
: if(concurrent<2){
: getdata(t_lines - 1, 0, "去除版主权限么 (Y/N)? [N]: ", genbuf, 4, DOECHO, NULL, true);
: if (genbuf[0] == 'Y' || genbuf[0] == 'y')
: user->userlevel&=~(PERM_BOARDS|PERM_CLOAK);
: }
: 结果make的时候提示
: [Compiling bcache.c]
: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -DLINUX -I/usr/include/mysql -Wall -c bcache.c -MT bcache.lo -MD -MP -MF .deps/bcache.TPlo -fPIC -DPIC -o .libs/bcache.o
: bcache.c: In function `del_bm':
: bcache.c:775: warning: implicit declaration of function `getdata'
: bcache.c:775: error: `t_lines' undeclared (first use in this function)
: bcache.c:775: error: (Each undeclared identifier is reported only once
: bcache.c:775: error: for each function it appears in.)
: bcache.c:775: error: `genbuf' undeclared (first use in this function)
: make[2]: *** [bcache.lo] 错误 1
: make[1]: *** [all-recursive] 错误 1
: make: *** [all] 错误 2
: 我用的OS是Debian3.1,这个错误该如何修理?望各位指点一下~!
--
FROM 128.12.150.*