Solved

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

Posted on 2011-03-01
3
1,754 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
ID: 35014936
remove the capital from Main, i.e.

int main(void) ...
0
 
LVL 3

Author Closing Comment

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

Expert Comment

by:crysallus
ID: 35015086
Yes, C++ is case-sensitive, always.
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MSDN Subscription - Azure and NFP's 3 71
SAPE.heur.AE935 Visual Studio 3 48
Tab order 16 74
Saving the SQL Login Credentials for Excel 2010 Microsoft Queries 1 142
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.  …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 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