我在Federa下编译cvstrac中文版,出现如下的问题:
......
gcc -g -O0 -Wall -I. -I/home/regical/temp/tmp/cvstrac -o rss.o -c rss_.c
rss_.c: In function `common_rss_header':
rss_.c:43: parse error before `char'
rss_.c:52: `charset' undeclared (first use in this function)
rss_.c:52: (Each undeclared identifier is reported only once
rss_.c:52: for each function it appears in.)
make: *** [rss.o] 错误 1
请问是否是由于没有装一些环境引起的,谢谢!
[ Last edited by jjcvs on 2006-4-19 at 11:52 ]Author:
jjcvs Time: 2006-4-19 12:26
解决了,但是还不知道为什么,
将rss.c开始的方法common_rss_header修改成如下的样子就可以通过了:
static void common_rss_header(char *zTitle, char *zDescription, int nBuildDate){
int nTTL = atoi(db_config("rss_ttl", "60"));