Jump to content
  • Advertisement

Archived

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

Winston

OpenGL Getting OpenGL Working

This topic is 5348 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

I just started using OpenGL and went to the tutorials at nehe, following the directions for adding the .lib files that I needed to. When I try to link the project, it gives me the following errors---- Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Test.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Does anyone have any idea what my problem might be? The three files nehe tells me to add are OpenGL32.lib, Glu32.lib, and GLaux.lib if that helps any.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Read the error message: it''s looking for a function named "main" and not finding it.

Reasons for why this might be should be evident if you know your tools. (If you don''t know your tools, I think you''ll have more success learning the tools before learning something like OpenGL).

Share this post


Link to post
Share on other sites
No offense, but you should be familiar with some windows programming before even attempting OpenGL. The reason your getting that errors is because you are trying to create a program in MSDOS
(console app) instead of a Win32 app. Learn at least how to create a window and perhaps some menus before going to OpenGL

Share this post


Link to post
Share on other sites
I know how to do that... unless I clicked on the wrong thing when I made the project somehow, then it is a Win32 app. I'll go check and see.

EDIT

--Yep that was it, I think I accidently clicked on something else when I was creating the project, thanks for the help, even if it did hurt my feelings .

[edited by - Winston on November 30, 2003 6:25:07 PM]

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!