我想「製造」一個程序,但仍面臨這些錯誤;我使用make -lm,甚至包括#include,但仍面臨同樣的問題。我試圖在Ubuntu和Debian上安裝應用程序,以確保我刪除已損壞的庫的疑惑。沒有成功!未定義的引用'ceilf'
nat_src_endpoint_ip.o: In function `__new':
/root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_ip.c:95: undefined reference to `ceilf'
nat_src_endpoint_tcp.o: In function `__create':
/root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_tcp.c:58: undefined reference to `ceilf'
nat_src_endpoint_udp.o: In function `__create':
/root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_udp.c:59: undefined reference to `ceilf'
nat_src_endpoint_icmp.o: In function `__create':
/root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_icmp.c:48: undefined reference to `ceilf'
collect2: ld returned 1 exit status
make[1]: *** [sweetspot] Error 1
make[1]: Leaving directory `/root/softwares/sweetspot-0.0.20/src'
make: *** [all] Error 2
您是否在連接器調用結束時放置了'-lm'標誌? – 2013-07-21 17:15:31
向我們展示您製作的文件或命令,用於構建 – Pradheep
這是項目的焦油(強制門戶),生成文件太大 http://sourceforge.net/projects/sweetspot/files/sweetspot/0.0。 20/sweetspot-0.0.20.tar.gz/download .................................... .............. 我所做的就是運行:「./configure」然後我跑了「make」哪個失敗了,然後我跑了「make -lm」也失敗了 – Undisputed007