1
我试图从http://www.yendor.com/programming/sort/C库编译错误
直接链接编译整理库库:http://www.yendor.com/programming/sort/sort-all.tgz
当我运行使编译器说:
gcc -g -O -DCUTOFF=15 -c sorttest.c
In file included from sorttest.c:15:
sort.h:66: error: conflicting types for ‘heapsort’
/usr/include/stdlib.h:301: error: previous declaration of ‘heapsort’ was here
make: *** [sorttest.o] Error 1
灿有人帮助解决这个问题?
看起来像两个文件试图定义'heapsort' – tekknolagi