Jump to content
  • Advertisement

Archived

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

bonkhead007

what should i do for this????

This topic is 5812 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 technocrats I have included all header files, added the necesssary library files in lib directory and the necessary dll''s in the Windows system folder , but still i am getting the following error message while linking. I even included the necessary library files in the settings. LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. what should i do now? I am breaking my head over this for the past 2 days!!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
you made the wrong project type. Windows is looking for a main() function. This means you created a win32 console application. Most likely your application doesn''t contain a main function but a winmain. If your application has a winmain() function then you need to create a win32 application, not a win32 console application. You can fix this problem by creating a new project of the correct type.

Share this post


Link to post
Share on other sites
you either haven't written a void main() function or aren't compiling the file that contains it. [EDIT: also...what AP said ]

-me

[edited by - Palidine on September 16, 2002 1:18:01 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!