View Full Version : [Linker error]

12-03-2006, 07:25 AM
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.wi n [Build Error] [window.exe] Error 1

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

Thanks in Advance :D

12-03-2006, 08:09 AM
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.

12-04-2006, 08:04 AM
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.