Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


error messge while compiling opengl tut #01

This topic is 5881 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''ve got the following errors while compiling Tut #1. Build Log --------------------Configuration: OpenGL - Win32 Debug-------------------- Command Lines Creating temporary file "C:\Temp\RSP2A.tmp" with contents [ OpenGL32.lib GLu32.lib GLaux.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/OpenGL.pdb" /debug /machine:I386 /out:"Debug/OpenGL.exe" /pdbtype:sept ".\Debug\OpenGL.obj" ".\Debug\StdAfx.obj" ] Creating command line "link.exe @C:\Temp\RSP2A.tmp" Output Window Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/OpenGL.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Results OpenGL.exe - 2 error(s), 0 warning(s) If someone knows a solution, write me please. Thanks, iter

Share this post

Link to post
Share on other sites
Win32 Console app uses a main function

Win32 app uses a WinMain function

you have created a Console app and used a win main function, change to a win32 application

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!