I am trying to set up the glcanvas on a wxwidgets app I can run normal wxwidgets apps fine but when I put in glcanvas i get this:
||=== learning linking, Debug ===|
H:\mywxgl\mywxglMain.h|42|error: ISO C++ forbids declaration of 'wxGLCanvas' with no type|
H:\mywxgl\mywxglMain.h|42|error: expected ';' before '*' token|
H:\mywxgl\mywxglMain.cpp||In constructor 'learning_linkingFrame::learning_linkingFrame(wxWindow*, wxWindowID)':|
H:\mywxgl\mywxglMain.cpp|68|error: 'WX_GL_RGBA' was not declared in this scope|
H:\mywxgl\mywxglMain.cpp|69|error: 'WX_GL_DOUBLEBUFFER' was not declared in this scope|
H:\mywxgl\mywxglMain.cpp|70|error: 'WX_GL_DEPTH_SIZE' was not declared in this scope|
H:\mywxgl\mywxglMain.cpp|71|error: 'WX_GL_STENCIL_SIZE' was not declared in this scope|
H:\mywxgl\mywxglMain.cpp|73|error: 'GLCanvas1' was not declared in this scope|
H:\mywxgl\mywxglMain.cpp|73|error: expected type-specifier before 'wxGLCanvas'|
H:\mywxgl\mywxglMain.cpp|73|error: expected ';' before 'wxGLCanvas'|
H:\mywxgl\mywxglMain.cpp|67|warning: unused variable 'GLCanvasAttributes_1'|
||=== Build finished: 9 errors, 1 warnings ===|
I did not mess with the code at all this is just what it generated
I am using wxsmith, codeblocks 10.5 and wxWidgets2.8
It's probably a simple fix....thanks