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
You have problem in linker setting. You have to link
glew32s.lib
Not only glew32.lib you must link glew32s.lib also .Be sure that it must be at the top of the list of linker.
While writting code don't forget to define
#define GLEW_STATIC
At the top of source file.