[問題] [Linker error] undefined reference to.....
SearchTree Insert(SearchTree position,float longitude,float latitude)
{
if(position==NULL)
{
position= (SearchTree)malloc(sizeof( struct city ));
}
if(position->longitude>longitude&&position->latitude>latitude)
{
insert(position->WS,longitude,latitude);
}
return position;
}
請問一下當只有第一個判斷式時
可以跑
可是當加入第個二個判斷式時(其中含有遞回)
就出現了 [Linker error] undefined reference to `insert' 錯誤
我不懂問題出在哪裡?跟遞回有關係嗎
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.119.234.18
推
12/02 22:36, , 1F
12/02 22:36, 1F
推
12/02 22:42, , 2F
12/02 22:42, 2F
→
12/02 22:43, , 3F
12/02 22:43, 3F
推
12/02 23:12, , 4F
12/02 23:12, 4F
→
12/02 23:12, , 5F
12/02 23:12, 5F
→
12/02 23:13, , 6F
12/02 23:13, 6F
→
12/02 23:13, , 7F
12/02 23:13, 7F
推
12/02 23:24, , 8F
12/02 23:24, 8F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章