943,703 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 30284
  • C++ RSS
May 8th, 2004
0

Dev-C++, GLUI linker error, undefined reference

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
becca is offline Offline
2 posts
since May 2004
May 8th, 2004
0

Re: Dev-C++, GLUI linker error, undefined reference

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/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
becca is offline Offline
2 posts
since May 2004
Oct 18th, 2005
0

Re: Dev-C++, GLUI linker error, undefined reference

I have a similar problem (using Dev-C++, glut, and glui, but getting a linker error). I tried installing the devpaks mentioned by becca and still the same problem. Help anyone?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
urubu715 is offline Offline
2 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Help me please!!!
Next Thread in C++ Forum Timeline: User defined functions-for loop





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC