2014-07-24 54 views
-2

我試圖編譯一個機器人,而且我有幾天的麻煩。經過調試的時間我只留下了這個錯誤:umenu.cpp undefined參考錯誤

libui.a(libui_a-uMenu.o): In function `uMenuItemString::Event(SDL_Event&) [clone .part.51]': 
uMenu.cpp:(.text+0x447c): undefined reference to `get_scrap(int, int*, char**)' 
uMenu.cpp:(.text+0x47ac): undefined reference to `init_scrap()' 
collect2: error: ld returned 1 exit status 
make[3]: *** [armagetronad_main] Error 1 
make[3]: Leaving directory `/home/noah/0.4-bot/src' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/home/noah/0.4-bot/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/noah/0.4-bot' 
make: *** [all] Error 2 

回答

0

功能get_scrap()init_scrap()在你的鏈接丟失。他們可能在另一個源代碼或庫中。

+0

我將如何去尋找他們 – puef

+0

@puef你會在你的問題上方的鏈接中獲得更多信息。 – denisvm