2014-07-24 55 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