| | |
Dev-C++, GLUI linker error, undefined reference
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2004
Posts: 2
Reputation:
Solved Threads: 0
I am using the Dev-C++ compiler. Right now I am having a problem using GLUI. I have installed GLUT and tested some examples, which worked. I have installed the devpack (I believe that is what it was called) for GLUI and am unable to do any examples.
The includes are the following:
#define GLUT_DISABLE_ATEXIT_HACK
#include <stdio.h>
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glut.h>
#include "glui.h"
the code compiles, but I get linker errors, this is one of them:
[Linker error] undefined reference to 'GLUI_Master'
....
I had a similar problem when I first installed GLUT, but solved it by adding the following libraries to the project: libglu32.a, libopengl32.a, libglut.a, libglut.32. Also adding #define GLUT_DISABLE_ATEXIT_HACK.
Does anybody know what I have to add/change or move in order to rid my project of these linker errors. Any advice would be greatly appreciated, as I am very anxious to start using GLUI.
The includes are the following:
#define GLUT_DISABLE_ATEXIT_HACK
#include <stdio.h>
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glut.h>
#include "glui.h"
the code compiles, but I get linker errors, this is one of them:
[Linker error] undefined reference to 'GLUI_Master'
....
I had a similar problem when I first installed GLUT, but solved it by adding the following libraries to the project: libglu32.a, libopengl32.a, libglut.a, libglut.32. Also adding #define GLUT_DISABLE_ATEXIT_HACK.
Does anybody know what I have to add/change or move in order to rid my project of these linker errors. Any advice would be greatly appreciated, as I am very anxious to start using GLUI.
•
•
Join Date: May 2004
Posts: 2
Reputation:
Solved Threads: 0
never mind, problem solved... had to reinstall the devpak for glui (it had been updated) and install the devpak for glut (didn't use devpak for glut originally)... found it here : http://www.nigels.com/glt/devpak/
![]() |
Similar Threads
- Another [Linker error] undefined reference to `WinMain@16' (C++)
- [Linker error] undefined reference to `SDL_Init' (C++)
- [Linker error] undefined reference to `D3DXCreateFontA@48' (C++)
- [linker error] undefined reference - why am I getting this error? (C++)
- [Linker error] undefined reference to `CQTMovieFile::CQTMovieFile()' (C++)
- What is it meaned [Linker error] undefined reference to `MAPILogon@24' (C++)
Other Threads in the C++ Forum
- Previous Thread: Help me please!!!
- Next Thread: User defined functions-for loop
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





