Re: [問題] make出問題

作者: shyau (小)   2010-04-17 11:32:40
不好意思,我的問題現在變成了
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c visio.c
In file included from ../include/bbs.h:14,
from visio.c:14:
/usr/include/stdio.h:56: conflicting types for `va_list'
/usr/local/lib/gcc-lib/i386-portbld-freebsd6.0/2.95.3/include/varargs.h:204:
previous declaration of `va_list'
*** Error code 1
Stop in /usr/home/bbs/src/maple.
*** Error code 1
Stop in /usr/home/bbs/src/maple.
我懂她的意思,但是不知道有從何著手,煩請指點,謝謝
※ 引述《shyau (小)》之銘言:
想請問板上各位大大,
(freebsd 6.0 用gcc295)
最後出問題的地方如何解決,煩請指點,謝謝
[email protected][/home/bbs/src/maple]$ make freebsd install
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c acct.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c bbsd.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c board.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c cache.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c edit.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c favorite.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c gem.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c mail.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c menu.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c more.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c post.c
post.c: In function `XoXpost':
post.c:3143: warning: comparison between pointer and integer
post.c:3143: warning: comparison between pointer and integer
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c talk.c
gcc295 -DBSD44 -DTWO_LONGJMP_ARGS -O2 -mpentiumpro -pipe -fomit-frame-pointer
-Wunused -I../include -g -c visio.c
In file included from ../include/bbs.h:14,
from visio.c:14:
/usr/include/stdio.h:56: conflicting types for `va_list'
/usr/local/lib/gcc-lib/i386-portbld-freebsd6.0/2.95.3/include/varargs.h:204:
previous declaration of `va_list'
*** Error code 1
Stop in /usr/home/bbs/src/maple.
*** Error code 1
Stop in /usr/home/bbs/src/maple.
作者: DarkIllusion (′・ω・‵)   2010-04-16 11:53:00
post.c的第3143行出錯,所以編譯失敗出錯原因上面有寫,改一下程式碼應該就可以了
作者: shyau (小)   2010-04-16 19:03:00
謝謝樓上,我想問一下 就是ansi要怎麼在vi裡編輯,謝謝
作者: DarkIllusion (′・ω・‵)   2010-04-20 00:36:00
沒看到code我不清楚,不過我猜是visio.c重覆include了stdio.h因為bbs.h裡已經有include stdio.h,而visio.c又有include bbs.h
作者: shyau (小)   2010-04-20 01:06:00
謝謝D大
作者: DarkIllusion (′・ω・‵)   2009-04-16 11:53:00
post.c的第3143行出錯,所以編譯失敗出錯原因上面有寫,改一下程式碼應該就可以了
作者: shyau (小)   2009-04-16 19:03:00
謝謝樓上,我想問一下 就是ansi要怎麼在vi裡編輯,謝謝
作者: DarkIllusion (′・ω・‵)   2010-04-20 00:36:00
沒看到code我不清楚,不過我猜是visio.c重覆include了stdio.h因為bbs.h裡已經有include stdio.h,而visio.c又有include bbs.h
作者: shyau (小)   2010-04-20 01:06:00
謝謝D大

Links booklink

Contact Us: admin [ a t ] ucptt.com