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
--
FROM 211.151.248.*