Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Porblem with glut
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Asth
n00b
n00b


Joined: 16 Dec 2002
Posts: 41

PostPosted: Mon Dec 16, 2002 12:46 pm    Post subject: Porblem with glut Reply with quote

Hello, i try to compile one example in C++ of Opengl using glut. But when I go to link it, the linker say ....
Code:

demon@DeMoNiAkUsSeRvEr demon $ g++ -o ejemplo ejemplo.cc -lglut -lGL
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference to `gluErrorString'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference to `gluNewQuadric'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference to `gluQuadricDrawStyle'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference to `gluCylinder'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference to `gluQuadricNormals'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference to `gluSphere'
collect2: ld returned 1 exit status

any idea of what is the problem ?
Back to top
View user's profile Send private message
Asth
n00b
n00b


Joined: 16 Dec 2002
Posts: 41

PostPosted: Tue Dec 17, 2002 8:38 am    Post subject: I find the solution Reply with quote

Code:
 g++ -o ejemplo ejemplo.cc -lglut -lGL -lMesaGLU

with the flag -lMesaGLU it works fine ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum