发表于 : 2005-09-12 12:55
编译错误:我在breezy中,以前可以在gcc3x中编译的程序现在都发生编译错误。
不知该如何解决?
---------------------
Making all in src
make[1]: Entering directory `/home/zengsun/MyDownloads/cce-0.51/src'
Making all in input
make[2]: Entering directory `/home/zengsun/MyDownloads/cce-0.51/src/input'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DCCELIB=\"/usr/local/share/cce\" -MT associate.o -MD -MP -MF ".deps/associate.Tpo" -c -o associate.o associate.c; \
then mv -f ".deps/associate.Tpo" ".deps/associate.Po"; else rm -f ".deps/associate.Tpo"; exit 1; fi
In file included from associate.c:38:
../../include/defs.h: 在函数 ‘bzero2’ 中:
../../include/defs.h:61: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘wzero’ 中:
../../include/defs.h:68: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘lzero’ 中:
../../include/defs.h:76: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘bmove’ 中:
../../include/defs.h:82: 错误:自增运算中的左值无效
../../include/defs.h:82: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘brmove’ 中:
../../include/defs.h:88: 错误:自减运算中的左值无效
../../include/defs.h:88: 错误:自减运算中的左值无效
../../include/defs.h: 在函数 ‘wmove’ 中:
../../include/defs.h:95: 错误:自增运算中的左值无效
../../include/defs.h:95: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘lmove’ 中:
../../include/defs.h:102: 错误:自增运算中的左值无效
../../include/defs.h:102: 错误:自增运算中的左值无效
associate.c: 在函数 ‘FillAssociateChars’ 中:
associate.c:150: 警告:传递参数 1 (属于 ‘strlen’) 给指针时目标与指针有/无符号不 一致
associate.c:165: 警告:传递参数 1 (属于 ‘__builtin_strncpy’) 给指针时目标与指针 有/无符号不一致
associate.c:165: 警告:传递参数 2 (属于 ‘__builtin_strncpy’) 给指针时目标与指针 有/无符号不一致
associate.c: 在函数 ‘DisplayAssociateInput’ 中:
associate.c:200: 警告:传递参数 3 (属于 ‘InputAreaOutput’) 给指针时目标与指针有/无符号不一致
associate.c: 在函数 ‘Associate_HZFilter’ 中:
associate.c:214: 警告:对指针赋值时目标与指针有/无符号不一致
make[2]: *** [associate.o] 错误 1
make[2]: Leaving directory `/home/zengsun/MyDownloads/cce-0.51/src/input'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zengsun/MyDownloads/cce-0.51/src'
make: *** [all-recursive] 错误 1
不知该如何解决?
---------------------
Making all in src
make[1]: Entering directory `/home/zengsun/MyDownloads/cce-0.51/src'
Making all in input
make[2]: Entering directory `/home/zengsun/MyDownloads/cce-0.51/src/input'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DCCELIB=\"/usr/local/share/cce\" -MT associate.o -MD -MP -MF ".deps/associate.Tpo" -c -o associate.o associate.c; \
then mv -f ".deps/associate.Tpo" ".deps/associate.Po"; else rm -f ".deps/associate.Tpo"; exit 1; fi
In file included from associate.c:38:
../../include/defs.h: 在函数 ‘bzero2’ 中:
../../include/defs.h:61: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘wzero’ 中:
../../include/defs.h:68: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘lzero’ 中:
../../include/defs.h:76: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘bmove’ 中:
../../include/defs.h:82: 错误:自增运算中的左值无效
../../include/defs.h:82: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘brmove’ 中:
../../include/defs.h:88: 错误:自减运算中的左值无效
../../include/defs.h:88: 错误:自减运算中的左值无效
../../include/defs.h: 在函数 ‘wmove’ 中:
../../include/defs.h:95: 错误:自增运算中的左值无效
../../include/defs.h:95: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘lmove’ 中:
../../include/defs.h:102: 错误:自增运算中的左值无效
../../include/defs.h:102: 错误:自增运算中的左值无效
associate.c: 在函数 ‘FillAssociateChars’ 中:
associate.c:150: 警告:传递参数 1 (属于 ‘strlen’) 给指针时目标与指针有/无符号不 一致
associate.c:165: 警告:传递参数 1 (属于 ‘__builtin_strncpy’) 给指针时目标与指针 有/无符号不一致
associate.c:165: 警告:传递参数 2 (属于 ‘__builtin_strncpy’) 给指针时目标与指针 有/无符号不一致
associate.c: 在函数 ‘DisplayAssociateInput’ 中:
associate.c:200: 警告:传递参数 3 (属于 ‘InputAreaOutput’) 给指针时目标与指针有/无符号不一致
associate.c: 在函数 ‘Associate_HZFilter’ 中:
associate.c:214: 警告:对指针赋值时目标与指针有/无符号不一致
make[2]: *** [associate.o] 错误 1
make[2]: Leaving directory `/home/zengsun/MyDownloads/cce-0.51/src/input'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zengsun/MyDownloads/cce-0.51/src'
make: *** [all-recursive] 错误 1