Windows OpenGl problem(C++ Code::Blocks)

I recently just found this forum, and i’ve been having a headache over this problem! i dont want to fill up this post, so ill link you guys to the problem which i posted on a different forum. Thank you SO MUCH if you can help!
http://www.cplusplus.com/forum/windows/75097/

It looks like linker errors since the first line says
obj\Debug\main.o

You need to find out how to link with opengl32.a or whatever Code::Blocks calls it (opengl32.lib?)
You also should link with all other libraries that you use, such as glu32.a (or glu32.lib).

Notice that you are using legacy OpenGL. Are you sure you want to do that?

I am using CodeBlocks for OpenGL and MinGW, and I use the following libraries. But I use glew as an extension loading library.
lglew32
lopengl32
Ws2_32
ole32
comctl32
gdi32
comdlg32
uuid