neolith 0.1.2 在 ubuntu 下编译失败

46 views
Skip to first unread message

xue...@gmail.com

unread,
Sep 7, 2006, 6:07:46 PM9/7/06
to ES2 討論區
今天下载了 neolith 0.1.2 在我的 ubuntu
上编译,出现这个错误:

comm.c: 在函数 ‘init_user_conn’ 中:
comm.c:176: 警告: 传递参数 3 (属于 ‘getsockname’)
给指针时目标与指针有/无符号不一致
comm.c: 在函数 ‘new_user_handler’ 中:
comm.c:969: 警告: 传递参数 3 (属于 ‘accept’)
给指针时目标与指针有/无符号不一致
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I..
-Wall -ggdb -O -pipe -c backend.c
backend.c:586: 错误: 对 ‘consts’
的静态声明出现在非静态声明之后
main.h:44: 错误: ‘consts’ 的上一个声明在此
make[2]: *** [backend.o] 错误 1

请问该如何解决?

Annihilator

unread,
Sep 10, 2006, 10:47:49 PM9/10/06
to ES2 討論區
main.h:44 裡所宣告的 consts 是不需要的。
將 extern double consts[]; 這行刪除即可。

Can Xue

unread,
Sep 11, 2006, 6:15:28 AM9/11/06
to es2...@googlegroups.com
谢谢老大,编译成功搞定!

2006/9/11, Annihilator <tae...@gmail.com>:


> main.h:44 裡所宣告的 consts 是不需要的。
> 將 extern double consts[]; 這行刪除即可。
>
> >
>


--
薛粲

有耕耘方能有收获,愿能与您顺心携手共成长。

Reply all
Reply to author
Forward
0 new messages