- 主题:编译之后没有shminit
如果是最新的cvs的话,make usesql.h
不要删这句:
#include "usesql.h"
【 在 leafok (椰树林) 的大作中提到: 】
: 这个SQLUSER之类的宏是在哪个文件里面定义的啊?
: bbsevad.c: In function `connsql':
: bbsevad.c:17: `SQLUSER' undeclared (first use in this function)
: bbsevad.c:17: (Each undeclared identifier is reported only once
: bbsevad.c:17: for each function it appears in.)
: bbsevad.c:17: `SQLPASSWD' undeclared (first use in this function)
: bbsevad.c:17: `SQLDB' undeclared (first use in this function)
: make: *** [bbsevad.o] Error 1
: ...................
--
FROM 127.0.0.1
现在Makefile改了,按照最新的Makefile,直接在local_utl下make bbsevad应该自动生成usesql.h的
【 在 bluetent (Life Goes Down) 的大作中提到: 】
: nju09/usesql.h
: 到nju09下 make usesql.h 就可以了
: 但首先保证configure时敲进去的密码是正确的,否则还需要手动修改一下
: 【 在 leafok (椰树林) 的大作中提到: 】
: : 这个SQLUSER之类的宏是在哪个文件里面定义的啊?
: : bbsevad.c: In function `connsql':
: : bbsevad.c:17: `SQLUSER' undeclared (first use in this function)
: : bbsevad.c:17: (Each undeclared identifier is reported only once
: ...................
--
FROM 127.0.0.1
删了重新编译..
cvs里面不应该有这文件的
Makefile里面有这句:
usesql.h: $(BBSHOME)/etc/sysconf.ini
echo "#include <mysql/mysql.h>" > usesql.h
cat $(BBSHOME)/etc/sysconf.ini|grep SQL|sed -e 's/^/#define /;s/=//g' >> usesql.h
你的sysconfig.ini里面应该有
SQLUSER = "bbs"
SQLDB= "...."
SQLPASSWD= "...."
这些应该是在你configure的时候生成的,现在你可能需要手工去改了
【 在 leafok (椰树林) 的大作中提到: 】
: 是昨天刚下的
: 有包含usesql.h
: 我看usesql.h里面只有一行
: #include <mysql/mysql.h>
: 【 在 ylsdd (中宣这个春天的部) 的大作中提到: 】
: : 如果是最新的cvs的话,make usesql.h
: : 不要删这句:
: : #include "usesql.h"
: ...................
--
FROM 127.0.0.1