Advertisement

Weird link error

Started by October 01, 2002 11:45 PM
2 comments, last by Moogle 22 years, 5 months ago
I had to reformat my new harddrive so I am writing new OGL basecode. not being a total n00b I have added OpenGL32.lib GLu32.lib GLaux.lib to my link settings. Now I get a strange and cryptical error that I have never run into before: --------------------Configuration: OpenGL - Win32 Debug-------------------- Compiling... main.cpp Linking... main.obj : error LNK2001: unresolved external symbol "long __stdcall WndProc(struct HWND__ *,unsigned int,long,unsigned int)" (?WndProc@@YGJPAUHWND__@@IJI@Z) Debug/OpenGL.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. OpenGL.exe - 2 error(s), 0 warning(s) Please help oh great OpenGL masters
-=Moogle=-
That is NO OpenGL problem - WndProc...

Have you declared the WndProc procedure?

When nothing helps, create a new project and try it once more...

PM
PM Times change... Excuse my poor english!
Advertisement
have you actually implemented the WndProc function?
You got that link error because your project setting is set to console. You have to change your settings to win32 project.
You''re not a programmer until that moment you stop yourself from destroying your computer into a billion- million pieces

This topic is closed to new replies.

Advertisement