Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: [Linker error]

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2006

    [Linker error]

    Hi I am new to OpenGL, and I came across a tutorial at,
    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

  2. #2
    Senior Member OpenGL Pro k_szczech's Avatar
    Join Date
    Feb 2006

    Re: [Linker error]

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2005

    Re: [Linker error]

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

    Code :
     #include <windows.h>
    If I remember right, this should be done before you include any glut files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts