• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2138
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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