Sign in to follow this  
3dmodelerguy

OpenGL linking problems, help please

Recommended Posts

i have the source coe from setting up Open GL with WIndows from nehe tutorail 1 and yess i added OpenGL32.lib GLu32.lib and GLaux.lib but i am getting these errors: Deleting intermediate files and output files for project 'OpenGL_Game_Engine - Win32 Debug'. --------------------Configuration: OpenGL_Game_Engine - Win32 Debug-------------------- Compiling... Main.cpp Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/OpenGL_Game_Engine.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. OpenGL_Game_Engine.exe - 2 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
It can't find the Main function.

This probably means you have a WinMain not a Main (eg the nehe code is for a win32 app, not a console app). Simple create a windowed application project instead of a console one.

BTW this question has been asked and answered hundreds of times on gamedev - my friendly advice is to use the handy search function before asking questions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this