cht電腦資訊gcin
adm Find login register

編譯 pre22 的問題

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
1subject: 編譯 pre22 的問題Promote 0 Bookmark 02010-04-20quote  

在編譯 1.4.7pre22 時,舊版的 gcc會出現錯誤

好像以前有人問過,但只能在 google 找到備份

而且我還是不清楚要如何避免

可以教一下如何修改嗎?

gmake[1]: Entering directory `/usr/src/packages/BUILD/gcin-1.4.7.pre22/im-client'
Makefile:54: .depend: No such file or directory
gcc -DUNIX=1 -Wall -O -I. -I.. -I../IMdkit/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -DCLIENT_LIB=1 -DGCIN_BIN_DIR=\"/usr/bin\" -DDEBUG="0" -DGCIN_TABLE_DIR=\"/usr/share/gcin/table\" -DFREEBSD=0 -fPIC -MM *.cpp > .depend
gcin-im-client.cpp:14:2: error: #else without #if
gcin-im-client.cpp:17:2: error: #endif without #if
gmake[1]: *** [.depend] Error 1
gmake[1]: Leaving directory `/usr/src/packages/BUILD/gcin-1.4.7.pre22/im-client'
make: *** [im-client/libgcin-im-client.so] Error 2

本人已不在此站活動

joined: 2007-09-19
posted: 4946
promoted: 325
bookmarked: 206
歸隱山林
2subject: Promote 0 Bookmark 02010-04-20quote  

請參考這一篇:

 http://hyperrate.com/thread.php?tid=17387


caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
3subject: Promote 0 Bookmark 02010-04-20quote  

用 vim 打開 im-client/gcin-im-client.cpp

:set nobomb

:wq

即可。

也可以用 diff/patch 或其它 Un*x tools 處理。

edited: 1
swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
4subject: Promote 0 Bookmark 02010-04-21quote  
謝謝各位 

cht電腦資訊gcin
adm Find login register
views:7790