|
不知道别人是否跟我遇到一样的编译错误
reatePYMB.c:178: warning: char format, different type arg (arg 5)
createPYMB.c: In function `CreatePYBase':
createPYMB.c:270: parse error before `int'
createPYMB.c:278: `tt' undeclared (first use in this function)
createPYMB.c:278: (Each undeclared identifier is reported only once
createPYMB.c:278: for each function it appears in.)
createPYMB.c:286: `s' undeclared (first use in this function)
make[2]: *** [createPYMB.o] Error 1
make[2]: Leaving directory `/home/fcitx/fcitx-3.0.0/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fcitx/fcitx-3.0.0'
make: *** [all] Error 2
编译环境debian gcc 2.95 kernel 2.4.26
解决方法
修改tools/createPYMB.c
注释掉 270 和271关于s 和tt定义的两行
在文件头bFULLpy的定义一行下加入
int s = 0;
int tt = 0; |
|