Results 1 to 5 of 5

Thread: problem for glui, can someone help me

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Ames, IA,USA
    Posts
    6

    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_RadioB utton@@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_RadioGr oup@@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@@PADHPAXH P6AXH@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@@PADHPAXHP6 AXH@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@@PADPAHHP 6AXH@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@@PADJ HH@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

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: problem for glui, can someone help me

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

    Mikael

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Ames, IA,USA
    Posts
    6

    Re: problem for glui, can someone help me

    how to include this library?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: problem for glui, can someone help me

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

    Mikael

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Ames, IA,USA
    Posts
    6

    Re: problem for glui, can someone help me

    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

Similar Threads

  1. " glui->add_button " Problem
    By rafikkk in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-10-2004, 06:08 AM
  2. a small glui problem
    By dvm in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-12-2004, 07:49 AM
  3. GLUI Problem
    By Ashish_Programmer in forum OpenGL: General
    Replies: 0
    Last Post: 03-26-2004, 04:23 AM
  4. GLUI Problem
    By Ashish_Programmer in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-26-2004, 04:21 AM
  5. Problem with GLUI
    By Sliker in forum OpenGL: General
    Replies: 1
    Last Post: 10-02-2002, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean