Jump to content
  • Advertisement

Archived

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

browolf

vc++ build error on lesson1

This topic is 5650 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 on vc++ 6 when i build lesson 1 i get the error. Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Lesson1.exe - 2 error(s), 0 warning(s) i''ve looked on google groups and there''s messages talking about removing references to _ATL_MIN_CRT in project,settings but i cant find anything about this _ALT_MIN_CRT can anyone help please? browolf

Share this post


Link to post
Share on other sites
Advertisement
I did not compile lesson1 , but i belive you are missing the main() function . maybe the main file (cpp) is not in the project ?

Share this post


Link to post
Share on other sites
in the file view it says:

Workspace ''Lesson1'': 1 projects(s)
- Lesson 1 files
|-lesson1.cpp
-- External Dependencies
|- basetsd.h

Share this post


Link to post
Share on other sites
which version did you download from the site ?

please give me the full link or copy paste the #includes lines.

Share this post


Link to post
Share on other sites
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library

those gl header files are definately there.

i downloaded this:
http://nehe.gamedev.net/data/lessons/vc/lesson01.zip

would the contents of the .plg file be handy?

Share this post


Link to post
Share on other sites
you have created a consule application which needs main() as its entry point
the tutorial has WinMain(...) as its entry point
create a win32 app (not win32 console app) and it will work

Share this post


Link to post
Share on other sites
yeah that''s it. I figured it out, but i couldnt come and say cos the site started being blocked by the upstream filtering at work.
doh!

i was opening the cpp file and then when i compiled vc++ automatically created a win32 console workspace not a win32 application workspace.

cheers

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!