Jump to content
  • Advertisement

Archived

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

Tran Minh Quang

Help me!

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

Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Starfield.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Starfield.exe - 2 error(s), 0 warning(s) I get that message many times when I compile my progra in Visual C++ 6. Why?

Share this post


Link to post
Share on other sites
Advertisement
Because you set your project to be a console application (for with main() is the entry point) instead of a windows application (for which WinMain() is the entry point).

Edited by - Fruny on February 3, 2002 5:19:34 AM

Share this post


Link to post
Share on other sites
Yep, remember when you create a new project select Win32 application. Not win32 MFC application though.

Share this post


Link to post
Share on other sites
The solution has already been posted. Start a new project, making sure you select "Win32 Application" (NOT Win32 Console Application - they are right next to each other so it is easy to click the wrong one by mistake) and add your files to the project.

Share this post


Link to post
Share on other sites
Or must you learn how to use it?

Sorry but if it''s looking for a main, then you specified your project to be a console application.

I doubt VS could mess up with its projects definition to the point of mixing win32 console and plain win32...

"Do it with style or don''t bother doing it."

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!