PDA

View Full Version : Error on compile with GLUI




saberslash
Sep 9, 2007, 08:47 PM
I recently upgraded from an old (Pre-intel) Imac running 10.3.9 to an intel imac with 10.4.10. On my previous machine this program compiled with out an error, now its getting the below compile errors. Any help would be greatly appreciated.

g++ pandraw.cpp -o pandraw -framework GLUT -framework OpenGL -lobjc -lm
/usr/bin/ld: Undefined symbols:
_GLUI_Master
GLUI_Listbox::delete_item(int)
GLUI_Listbox::add_item(int, char const*)
GLUI_Spinner::set_float_limits(float, float, int)
GLUI_EditText::set_float_limits(float, float, int)
GLUI_Master_Object::get_viewport_area(int*, int*, int*, int*)
GLUI_Master_Object::set_glutReshapeFunc(void (*)(int, int))
GLUI_Master_Object::create_glui_subwindow(int, long)
GLUI::add_button(char const*, int, GLUI_CB)
GLUI::add_listbox(char const*, int*, int, GLUI_CB)
GLUI::add_rollout(char const*, int, int)
GLUI::add_edittext(char const*, int, void*, int, GLUI_CB)
GLUI::add_separator()
GLUI::add_button_to_panel(GLUI_Panel*, char const*, int, GLUI_CB)
GLUI::set_main_gfx_window(int)
GLUI::add_spinner_to_panel(GLUI_Panel*, char const*, int, void*, int, GLUI_CB)
GLUI::add_edittext_to_panel(GLUI_Panel*, char const*, int, void*, int, GLUI_CB)
collect2: ld returned 1 exit status
make: *** [Pandraw] Error 1



kainjow
Sep 10, 2007, 11:24 AM
Looks like GLUI is missing. Did you install it?

Sayer
Sep 10, 2007, 11:24 AM
Did you install GLUI on the new computer?

saberslash
Sep 10, 2007, 02:25 PM
I believe I did. I went and recompiled the GLUI folder on my new machine, or did I miss a step?

kainjow
Sep 10, 2007, 02:29 PM
Maybe add the -lglui option?