View previous topic :: View next topic |
Author |
Message |
Asth n00b


Joined: 16 Dec 2002 Posts: 41
|
Posted: Mon Dec 16, 2002 12:46 pm Post subject: Porblem with glut |
|
|
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 |
|
 |
Asth n00b


Joined: 16 Dec 2002 Posts: 41
|
Posted: Tue Dec 17, 2002 8:38 am Post subject: I find the solution |
|
|
Code: | g++ -o ejemplo ejemplo.cc -lglut -lGL -lMesaGLU |
with the flag -lMesaGLU it works fine ... |
|
Back to top |
|
 |
|