Hello !

I try to make QT application with OpenGL graphics. I subclass QGLWidget and try draw cylinder such this
Qt Code:
  1. #include <QDebug>
  2. #include <QMouseEvent>
  3.  
  4. #include <GL/glu.h>
  5. #include <GL/glu_mangle.h>
  6.  
  7. #include "glwidget.h"
  8.  
  9. ...
  10.  
  11. void GLWidget :: paintGL (void)
  12. {
  13. qDebug () << __FUNCTION__;
  14. glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  15. GLUquadricObj* q = new gluNewQuadric ();
  16. gluCylinder (q, (GLdouble)cyl_radius, (GLdouble)cyl_radius, (GLdouble)cyl_height, 1000, 1000);
  17. }
To copy to clipboard, switch view to plain text mode 
and I receive an error
glwidget.cpp: In member function ‘virtual void GLWidget:aintGL()’:
glwidget.cpp:59: error: expected type-specifier before ‘mgluNewQuadric’
glwidget.cpp:59: error: cannot convert ‘int*’ to ‘GLUquadricObj*’ in initializat
ion
glwidget.cpp:59: error: expected ‘,’ or ‘;’ before ‘mgluNewQuadric’
glwidget.cpp:60: error: ‘mgluCylinder’ was not declared in this scope
make: *** [glwidget.o] Error 1
(3 of 7): error: expected type-specifier before ‘mgluNewQuadric’
In pro-file I write
Qt Code:
  1. DEPENDPATH += . \
  2. /usr/include/GL
  3. INCLUDEPATH += . \
  4. /usr/include/GL
  5.  
  6. QT += opengl
  7.  
  8. ...
To copy to clipboard, switch view to plain text mode 
My platform is Gentoo Linux, QT was compiled with opengl support. Any ideas ?