Advertisement

Somebody PLEASE help me!

Started by June 21, 2003 05:05 AM
3 comments, last by vb_recruit 21 years, 8 months ago
I have been desperately trying to compile some OpenGL and DirectX programs recently. I compiled lesson41, and look what I got: --------------------Configuration: Lesson41 - Win32 Debug-------------------- Linking... Lesson41.obj : error LNK2001: unresolved external symbol "void __cdecl ToggleFullscreen(struct GL_Window *)" (?ToggleFullscreen@@YAXPAUGL_Window@@@Z) Lesson41.obj : error LNK2001: unresolved external symbol "void __cdecl TerminateApplication(struct GL_Window *)" (?TerminateApplication@@YAXPAUGL_Window@@@Z) LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Lesson41.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. Lesson41.exe - 4 error(s), 0 warning(s) The same thing, unresolved externals for Dx too... What is wrong?? -Chris
Hey, you forgot to link to some libraries. Make sure you link your project to the OpenGL libraries(opengl32.lib, glu32.lib, glaux.lib) and the DirectX libraries (sorry, I don''t know which ones to link for that one.) If you don''t have the OpenGL Libraries, you can find them here, http://www.opengl.org

"Donkey, if it were me, you''d be dead."
I cna ytpe 300 wrods pre mniute.
"Donkey, if it were me, you'd be dead."I cna ytpe 300 wrods pre mniute.
Advertisement
Yep its all in the libs and headers. Probably in the dx and opengl libs (as stated above here) but if that doesnt fix it, it has to be another header/lib (maybe the precompiled header)
And you made a console application (thats the unresolved _main error). When making the App with the appwizard, choose "Win32 Application".
------------------------------------------------------ Regret Nothing - Learn Everything
Well this "void __cdecl ToggleFullscreen(struct GL_Window *)" is not because of missing opengl or dx libraries. Does it require nehe basecode or something else?

This topic is closed to new replies.

Advertisement