I am having problems compiling the OpenGL tutorial found here:
http://wxdsgn.sourceforge.net/tutorials ... be76a9f.eg.
I just copied MyGLCanvas files from the tutorial to my application, included them in the project, frame header and created class in the constructor.
(I can not compile the whole example also. Error: cannot find -lwxmsw27 )
I am getting error:
[Linker Error] undefined reference to `gluPerspective@32'
In the MyGLCanvas.h i tried to change
Code: Select all
gluPerspective(45.0,((float)w /(float) h), 1.0, 1000.0);
//to
gluPerspective(45.0,((GLdouble)w /(GLdouble) h), 1.0, 1000.0);
According to glu.h the gluPersective is defined as:
Code: Select all
GLAPI void APIENTRY gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar);
Regards,
Gintare