I am trying to use wxGLCanvas to make a cross platform 3D editor. When I first tried to write "wxGLCanvas *canvas = new wxGlCanvas(blah)", I got 1 unresolved external symbol. I soon found that I needed to build wxWidgets with wxUSE_GLCANVAS being 1. On my computer, "wx\setup.h" is located in:
Code: Select all
Anyways, I need to include this directory in my IDE (CodeBlocks) in order for anything to compile, otherwise I get the error "Unable to open file "wx\setup.h".
I changed wxUSE_GLCANVAS to 1 and rebuilt the libraries. I get the same error!
The wxWidgets libraries I have included are wxmsw25_core.lib, wxbase25_net.lib, wxbase25.lib, wxmsw25_adv.lib, and wxmsw25_media.lib. Are these all that I need for wxGLCanvas (besides opengl32.lib and glu32.lib)?