• Advertisement

Archived

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

error LNK2001: unresolved external symbol _main

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

Getting back into programming, and I have forgotten how to fix this linker problem. If I recall, you had to add 2 .lib files to your project. Can anyone give me a hand with this problem?

Share this post


Link to post
Share on other sites
Advertisement
Don''t you think this has something to do with the lack of a main function?
Perhaps you forgot to add the file with the Main function defined to the project!

Share this post


Link to post
Share on other sites
quote:
Original post by Noods
Getting back into programming, and I have forgotten how to fix this linker problem. If I recall, you had to add 2 .lib files to your project. Can anyone give me a hand with this problem?
I don''t think it involves adding libraries though... I used to get this when I would make a console project instead of a Win32 app, and vice versa (Main vs. WinMain)

Share this post


Link to post
Share on other sites

  • Advertisement