wxWidgets and OpenGL frustration!!!
I installed Dev Cpp, along with the wxWidgets devpak and I can successfully compile both a widgets program and a opengl program, however separately.
I want to incorporate glcanvas into my wxwidgets program, but every time I try to compile I get these linker errors:
[Linker error] undefined reference to `wxGLCanvas::SetCurrent(wxGLContext const&) const'
[Linker error] undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow*, int, int*, wxPoint const&, wxSize const&, long, wxString const&, wxPalette const&)'
[Linker error] undefined reference to `wxGLContext::wxGLContext(wxGLCanvas*, wxGLContext const*)'
[Linker error] undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow*, int, int*, wxPoint const&, wxSize const&, long, wxString const&, wxPalette const&)'
[Linker error] undefined reference to `wxGLContext::wxGLContext(wxGLCanvas*, wxGLContext const*)'
[Linker error] undefined reference to `wxGLCanvas::SwapBuffers()'
[Linker error] undefined reference to `wxGLCanvas::sm_eventTable'
[Linker error] undefined reference to `wxGLCanvas::GetClassInfo() const'
[Linker error] undefined reference to `wxGLCanvas::~wxGLCanvas()'
[Linker error] undefined reference to `wxGLCanvas::~wxGLCanvas()'
ld returned 1 exit status
C:\Users\user\Desktop\Makefile.win [Build Error] [Project1.exe] Error 1
I just don't get it... I included -lopengl32 to the linker parameters and I even changed the setup.h file to allow opengl use. However all I did was change the value in the setup.h file and not recompile anything, seeing I don't know how
if anyone could shed some light on this mess I would be more than ecstatic... thanks!