【紧急】我的cdrtools在cygwin内为什么编译不了,有做过的高手帮下忙啊?

xyhshen 2011-07-21 09:33:03
编译到最后出现一大堆错误
In file included from avoffset.c:36:
../include/schily.h:190: error: conflicting types for ‘getline’
/usr/include/sys/stdio.h:37: error: previous declaration of ‘getline’ was here

smake: Operation not permitted. *** Code 1 from command line for target 'avoffse
t.o'.
smake: The following command caused the error:
echo " ==> COMPILING \"avoffset.o\""; gcc -O -I. -IOBJ/i686-cygwin_nt-6.1-g
cc -I../incs/i686-cygwin_nt-6.1-gcc -I../include -DUSE_SCANSTACK -D__OPRINTF__
-c -o OBJ/i686-cygwin_nt-6.1-gcc/avoffset.o avoffset.c
smake: Couldn't make 'all'.
smake: Leaving 'smake'[2] from directory '/cygdrive/f/xyh project/source/cdr/cd
rtools-2.01/inc'
smake: Default commandline target: 'all'
smake: Doing exit(1)
smake: Operation not permitted. *** Code 1 from command line for target 'all'.
smake: The following command caused the error:
for MK in align_test.mk avoffset.mk ; \
do \
( \
if [ -r ./$MK ] ; then \
echo " ==> MAKING \"all\" ON SUBCOMPONENT \"SRCROOT/inc
/$MK\""; "smake" -f $MK XARCH=i686-cygwin_nt-6.1-gcc all;\
else \
echo "NOTICE: Partial source (SRCROOT/inc/$MK) missing";
\
fi \
); \
done
smake: Couldn't make 'all'.
smake: Leaving 'smake'[1] from directory '/cygdrive/f/xyh project/source/cdr/cd
rtools-2.01/inc'
smake: Default commandline target: 'all'
smake: Doing exit(1)
smake: Operation not permitted. *** Code 1 from command line for target 'all'.
smake: The following command caused the error:
list=""; \
[ -d TARGETS -a -f TARGETS/__slot ] && \
list=`echo TARGETS/[0-9][0-9]* | sed -e 's;TARGETS/[0-9][0-9];;g
' | sed -e 's;!@!;/;g'`;\
for DIR in ${list} ; \
do \
( \
echo " ==> MAKING \"all\" ON SUBDIRECTORY \"SRCROOT/$DIR\"";\
if [ -d ./$DIR -a -r ./$DIR/Makefile ] ; then \
cd ./$DIR;"smake" XARCH=i686-cygwin_nt-6.1-gcc DIRNAME=
SRCROOT/$DIR all; \
else \
echo "NOTICE: Partial source (SRCROOT/$DIR) missing";\
fi \
); \
done
smake: Couldn't make 'all'.
...全文
140 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xyhshen 2011-07-21
  • 打赏
  • 举报
回复
这个本身是开源代码,不是我写的...一套很稳定的了
昵称很不好取 2011-07-21
  • 打赏
  • 举报
回复
根据错误提示慢慢找吧
第一个错,
../include/schily.h:190: error: conflicting types for ‘getline’
/usr/include/sys/stdio.h:37: error: previous declaration of ‘getline’ was here

getline有问题了,看看schily.h文件的190行是否有问题
xyhshen 2011-07-21
  • 打赏
  • 举报
回复
都来帮帮忙啊

23,110

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧