[Linker error]

Hi I am new to OpenGL, and I came across a tutorial at http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01,
Anyway, i followed the tutorial when a Linker error came,
Now this is what it looks like:

[Linker error] undefined reference to `_Z7WndProcP6HWND__jlj@16’

ld returned 1 exit status

C:\Documents and Settings\Hinduzer\Mine dokumenter\Programering\OpenGl\Window2\Makefile.win [Build Error] [window.exe] Error 1

I am currently using Dev-C++, with the Glut function under Multimedia.

Thanks in Advance :smiley:

Seems like you have declared WndProc and used it somewhere, but you did not define this function’s body.
Or perhaps you did, but you used different set of arguments or call convention.

When I get a linker error in an OpenGL project, it’s usually because I forgot to include the windows.h header file:

 #include <windows.h> 

If I remember right, this should be done before you include any glut files.