Jump to content
  • Advertisement

Archived

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

Baked

Problems with code from a book.

This topic is 5223 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 got the book tittled "game programming in 24 hours". The first chapter is called Windows Primer where it teachers you about making a windows program. This is where the problems arises...I get the code from the cd and compile it but an error comes up... Compiling resources... Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Skeleton.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I opened the workspace from the folder so i assume it has it in win32.. Any suggestions would be nice. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
In VC++ when you create a project, you are setting it as a console project, when it needs to be a win32 application.

You''re getting that error because VC++ thinks you are making a console application, but cant find main() anywhere.

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!