PDA

View Full Version : lglew32.lib not found?



glnoob
09-03-2010, 06:31 PM
Hi, I am trying to build a project with Code::Blocks and glew. Here is my code that includes glew / opengl / etc.:


#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glew32.lib")
#pragma comment(lib,"lglew32.lib")

#include "../../../../glew-1.5.5/include/GL/glew.h"
#include "../../../../glew-1.5.5/include/GL/wglew.h"

I get this error message:

cannot find -lglew32.lib

What is the correct way to include glew? None of the explanations I have read are working.

ugluk
09-04-2010, 07:49 AM
Well, if the compiler cant find the glew includes, then it won't compile your source files. Otherwise, you probably need to setup the correct library directory inside Code::Blocks.

glnoob
09-04-2010, 01:59 PM
My solution was to stop using Code::Blocks.