標題:
编译saac的错误
[打印本頁]
作者:
囡囡
時間:
2012-10-28 05:49
標題:
编译saac的错误
[root@localhost ~]# cd sa/saac
[root@localhost saac]# dir
acfamily.c db.h main.c saacproto_oac.h tcpip_util.c
acfamily.h deathcontend.c main.h saacproto_serv.c tcpip_util.h
auction.c deathcontend.h makefile saacproto_serv.h util.c
auction.h defend.c makesaac saacproto_util.c util.h
char.c defend.h recv.c saacproto_util.h version.h
char.h lock.c recv.h saacproto_work.c wk
chatroom.c lock.h saacproto_lserver.c saacproto_work.h
chatroom.h mail.c saacproto_lserver.h sasql.c
db.c mail.h saacproto_oac.c sasql.h
[root@localhost saac]# make clean
make -C wk clean;
make[1]: Entering directory `/root/sa/saac/wk'
rm -f acwk *.o *~
make[1]: Leaving directory `/root/sa/saac/wk'
/bin/rm -f main.o recv.o util.o char.o db.o mail.o acfamily.o defend.o lock.o tcpip_util.o chatroom.o auction.o sasql.o saacproto_serv.o saacproto_util.o saacproto_work.o saacproto_lserver.o saacproto_oac.o deathcontend.o
/bin/rm -f *~
/bin/rm -f stderr.*
[root@localhost saac]# make depend
mv makefile makefile.bak
sed -ne '1,/^# DO NOT DELETE THIS LINE/p' makefile.bak > makefile
cc -M main.c recv.c util.c char.c db.c mail.c acfamily.c defend.c lock.c tcpip_util.c chatroom.c auction.c sasql.c saacproto_serv.c saacproto_util.c saacproto_work.c saacproto_lserver.c saacproto_oac.c deathcontend.c >> makefile
[root@localhost saac]# make
gcc -march=pentium4 -w -O3 -pipe -freg-struct-return -minline-all-stringops -mmmx -msse -msse2 -I /usr/include/mysql -c -o main.o main.c
main.c:1923: 错误:对 ‘initMissionTable’ 的静态声明出现在非静态声明之后
main.c:848: 错误:‘initMissionTable’ 的上一个隐式声明在此
main.c:2108: 错误:对 ‘initRankTable’ 的静态声明出现在非静态声明之后
main.c:852: 错误:‘initRankTable’ 的上一个隐式声明在此
make: *** [main.o] 错误 1
[root@localhost saac]#
请问是什么问题?
请问是main错误~能发我一份没错的给我吗?
1057772545@qq.com
[
本帖最後由 囡囡 於 2012-10-28 05:55 編輯
]
歡迎光臨 We Love SA 石器時代研討中心 (http://lab.welovesa.com/)
Powered by Discuz! 6.0.0