problem for glui, can someone help me

------ Build started: Project: glui_example2, Configuration: Debug Win32 ------

Linking…
glui_example2.obj : error LNK2019: unresolved external symbol “public: void __thiscall GLUI_Master_Object::set_glutIdleFunc(void (__cdecl*)(void))” (?set_glutIdleFunc@GLUI_Master_Object@@QAEXP6AXXZ@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: void __thiscall GLUI::set_main_gfx_window(int)” (?set_main_gfx_window@GLUI@@QAEXH@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_Button * __thiscall GLUI::add_button(char ,int,void (__cdecl)(int))” (?add_button@GLUI@@QAEPAVGLUI_Button@@PADHP6AXH@Z@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_RadioButton * __thiscall GLUI::add_radiobutton_to_group(class GLUI_RadioGroup *,char *)” (?add_radiobutton_to_group@GLUI@@QAEPAVGLUI_RadioButton@@PAVGLUI_RadioGroup@@PAD@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_RadioGroup * __thiscall GLUI::add_radiogroup_to_panel(class GLUI_Panel *,int ,int,void (__cdecl)(int))” (?add_radiogroup_to_panel@GLUI@@QAEPAVGLUI_RadioGroup@@PAVGLUI_Panel@@PAHHP6AXH@Z@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_Panel * __thiscall GLUI::add_panel(char *,int)” (?add_panel@GLUI@@QAEPAVGLUI_Panel@@PADH@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_EditText * __thiscall GLUI::add_edittext(char *,int,void ,int,void (__cdecl)(int))” (?add_edittext@GLUI@@QAEPAVGLUI_EditText@@PADHPAXHP6AXH@Z@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: void __thiscall GLUI_Spinner::set_int_limits(int,int,int)” (?set_int_limits@GLUI_Spinner@@QAEXHHH@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_Spinner * __thiscall GLUI::add_spinner(char *,int,void ,int,void (__cdecl)(int))” (?add_spinner@GLUI@@QAEPAVGLUI_Spinner@@PADHPAXHP6AXH@Z@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_Checkbox * __thiscall GLUI::add_checkbox(char *,int ,int,void (__cdecl)(int))” (?add_checkbox@GLUI@@QAEPAVGLUI_Checkbox@@PADPAHHP6AXH@Z@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: void __thiscall GLUI::add_separator(void)” (?add_separator@GLUI@@QAEXXZ) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI_StaticText * __thiscall GLUI::add_statictext(char *)” (?add_statictext@GLUI@@QAEPAVGLUI_StaticText@@PAD@Z) referenced in function _main
glui_example2.obj : error LNK2019: unresolved external symbol “public: class GLUI * __thiscall GLUI_Master_Object::create_glui(char *,long,int,int)” (?create_glui@GLUI_Master_Object@@QAEPAVGLUI@@PADJHH@Z) referenced in function _main
glui_example2.obj : error LNK2001: unresolved external symbol “class GLUI_Master_Object GLUI_Master” (?GLUI_Master@@3VGLUI_Master_Object@@A)
Debug/glui_example2.exe : fatal error LNK1120: 14 unresolved externals

Build log was saved at “file://d:\s05\cpre557\glui_example2\Debug\BuildLog.htm”
glui_example2 - 15 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped

Have you included the glui.lib or what ever the library is called in your linker options ?

Mikael

how to include this library?

Right click on project in “Solution Explorer”, click on “Linker” in the tree and then on “Input”, add your libraries to “Additional dependencies”.

Mikael

I did as you said ( add glui32.lib) , but I get this error, do you know why?

------ Build started: Project: glui_example2, Configuration: Debug Win32 ------

Linking…
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in GLUI32.LIB(alloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in GLUI32.LIB(alloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in GLUI32.LIB(alloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in GLUI32.LIB(alloc.obj)
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in GLUI32.LIB(abort_exit.obj)
LIBCD.lib(crt0.obj) : error LNK2005: _mainCRTStartup already defined in GLUI32.LIB(maincrt.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in GLUI32.LIB(ccinit.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in GLUI32.LIB(ccinit.obj)
LIBCD.lib(fflush.obj) : error LNK2005: _fflush already defined in GLUI32.LIB(file_io.obj)
Debug/glui_example2.exe : fatal error LNK1169: one or more multiply defined symbols found

Build log was saved at “file://d:\s05\cpre557\glui_example2\Debug\BuildLog.htm”
glui_example2 - 10 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped