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

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2004
Posts: 2
Reputation: becca is an unknown quantity at this point 
Solved Threads: 0
becca becca is offline Offline
Newbie Poster

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

 
0
  #1
May 8th, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 2
Reputation: becca is an unknown quantity at this point 
Solved Threads: 0
becca becca is offline Offline
Newbie Poster

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

 
0
  #2
May 8th, 2004
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/
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 2
Reputation: urubu715 is an unknown quantity at this point 
Solved Threads: 0
urubu715 urubu715 is offline Offline
Newbie Poster

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

 
0
  #3
Oct 18th, 2005
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?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC