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