Jump to content
  • Advertisement

Archived

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

Samith

fatal error LNK1561: entry point must be defined

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

Ok, so I''m using MSVC++ .NET 2003, and I start a new project, I choose to do an Empty Project (.NET), because I thought that would just give me a completely empty project, nothing in it. So I write my entire program and I go to compile it, spend ten minutes getting rid of all the stupid errors, and then finally when I think it''s goint o work, guess what, I get that damn linker error. "Entry point must be defined." Well, My program has "int main()" as the entry point, I don''t know how else I can "define" it. Is there anything special I have to do to get this working? I''m pretty sure it''s because I made it an empty project, so it doesn''t know if it''s looking for WinMain or main or what. If anyone knows how to fix this, I''d be really glad. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Do like this if you want your program to behave like a console app.


#using <mscorlib.dll>

using namespace System;

int main()
{
}


// Martin

Share this post


Link to post
Share on other sites
Hmm, I just switched all the files over to another project before I read your post, but I''ll keep what you said in mind next time, thanks!

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!