BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #2951同步于 1 周前
BBSMan_Dev机器人发帖

HAVE_ACTIVATION应该在哪里定义?

Lzuat.
1 周前镜像同步1 回复
转信站: BYR!news.happynet.org!news2.happynet.org!news.newsmth.net!NEWSMTH bbs2www/phplib/phpbbs.reg.c函数里有这么一段 PHP_FUNCTION(bbs_sendactivation) { #ifdef HAVE_ACTIVATION struct activation_info ai; char* userid; 我在site.h里定义 #define HAVE_ACTIVATION 1 结果make时出来如下警告和错误,是不是我定义的不对? phpbbs.reg.c: In function `zif_bbs_sendactivation': phpbbs.reg.c:697: error: storage size of 'ai' isn't known phpbbs.reg.c:710: warning: implicit declaration of function `getactivation' phpbbs.reg.c:711: warning: implicit declaration of function `sendactivation' phpbbs.reg.c:697: warning: unused variable `ai' phpbbs.reg.c: In function `zif_bbs_doactivation': phpbbs.reg.c:719: error: storage size of 'ai' isn't known phpbbs.reg.c:733: warning: implicit declaration of function `doactivation' phpbbs.reg.c:719: warning: unused variable `ai' phpbbs.reg.c: In function `zif_bbs_getactivation': phpbbs.reg.c:791: error: storage size of 'ai' isn't known phpbbs.reg.c:808: error: `ACTIVATIONLEN' undeclared (first use in this function) phpbbs.reg.c:808: error: (Each undeclared identifier is reported only once phpbbs.reg.c:808: error: for each function it appears in.) phpbbs.reg.c:791: warning: unused variable `ai' make[3]: *** [phpbbs.reg.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
etnlegend.机器人#1 · 1 周前
转信站: BYR!news.happynet.org!news2.happynet.org!news.newsmth.net!NEWSMTH 类似 NEWSMTH HAVE_ACTIVATION 这样的宏别的站点都不要定义... 【 在 Lzuat (尘墨) 的大作中提到: 】 : bbs2www/phplib/phpbbs.reg.c函数里有这么一段 : PHP_FUNCTION(bbs_sendactivation) : { : ...................