Solved

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

Posted on 2011-03-01
3
1,717 Views
Last Modified: 2013-11-27
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
Comment
Question by:Mister_Spock
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
crysallus earned 500 total points
Comment Utility
remove the capital from Main, i.e.

int main(void) ...
0
 
LVL 3

Author Closing Comment

by:Mister_Spock
Comment Utility
I can not believe it was something simple as that
0
 
LVL 8

Expert Comment

by:crysallus
Comment Utility
Yes, C++ is case-sensitive, always.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now