• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1926
  • Last Modified:

main.cpp MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

No matter how I create a Visual C++ 2010 project I keep getting   main.cpp
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup. I have even gone to a very basic entry point for Visual C++. I have tried changing the linker and follow any Visual C++ 2010 demo that I could, I keep getting the same error as above.
#include <iostream>

using namespace std;

int Main(void)
{
	
	return 0; 
}

Open in new window

0
Mister_Spock
Asked:
Mister_Spock
  • 2
1 Solution
 
crysallusCommented:
remove the capital from Main, i.e.

int main(void) ...
0
 
Mister_SpockAuthor Commented:
I can not believe it was something simple as that
0
 
crysallusCommented:
Yes, C++ is case-sensitive, always.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now