I'm wanting to get into and learn OpenGL in C++ and am using Code::Blocks. I was able to get freeglut to work, along with several online examples (as well as the example that ships with CB). However, when I try to include GLEW for some tutorials I'm following, I get the following compiler errors:
obj\Debug\main.o||In function `RenderSceneCB':|
C:\C Programs\OpenGL Test\main.cpp|12|undefined reference to `_imp____glewEnableVertexAttribArray'|
C:\C Programs\OpenGL Test\main.cpp|13|undefined reference to `_imp____glewBindBuffer'|
C:\C Programs\OpenGL Test\main.cpp|14|undefined reference to `_imp____glewVertexAttribPointer'|
C:\C Programs\OpenGL Test\main.cpp|18|undefined reference to `_imp____glewDisableVertexAttribArray'|
obj\Debug\main.o||In function `CreateVertexBuffer':|
C:\C Programs\OpenGL Test\main.cpp|34|undefined reference to `_imp____glewGenBuffers'|
C:\C Programs\OpenGL Test\main.cpp|35|undefined reference to `_imp____glewBindBuffer'|
C:\C Programs\OpenGL Test\main.cpp|36|undefined reference to `_imp____glewBufferData'|
||=== Build finished: 7 errors, 0 warnings (0 minutes, 0 seconds) ===|
No matter what I do, what suggestions I try, what other files I try to link, I keep getting these same errors. I had someone else try the code and they said it worked just fine but didn't have any ideas as to what's wrong with my GLEW setup.
Anyone with any ideas, throw them my way.
I'm using Windows 7, Code::Blocks 12.11, and downloaded Ming32 binaries for GLEW 1.9.0.
My linker setting is set up in this order:
glew32 freeglut opengl32 glu32 winmm gdi32