Fatal Error LNK! Help, please!

Hello! I've been scouting around this website for quite some time until I finally decided to join up. I've been programming for a little while now with the help over at GameDev, another great place.


Though i've recently been having some issues from my IDE, Microsoft Visual C++ 2010 Express. I'm actually not sure why it's giving me this issue, but... it is. I've googled the heck out of it and tried many solutions, none of them seemed to have worked. So as seen by other formats here, i'll go ahead and post my code along with the issue.

1
2
3
4
5
6
7
8
9
10
11
12
 // This is the test program!

#include <iostream>
using namespace std;

int main()
{
	cout << "Your IDE is broken.";
	cin.get(); // This is so it doesn't close, better then system("PAUSE");

	return 0;
}


1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>C:\Users\Ragnos\documents\visual studio 2010\Projects\Test\Debug\Test.exe : fatal error LNK1120: 1 unresolved externals

-------------------------------------------------------------------------------


I cannot for the life of me figure out WHY it refuses to build and start. I've re-installed the IDE and it still has not worked at all. I also downloaded CODE::BLOCKS to test if it was my code. (A very different IDE to me, colors and all!) I was able to determine that it was NOT my code, (Though cin.get(); could play a part in this.)

Anyways, I would really like to get this fixed. I've grown very fond of Microsoft Visual C++ 2010 express and would like to continue using it(Especially for a few libraries that I found like SFML, yes I know it works for CODE::BLOCKS)since it seems much more proficient, at least too me.

I'd greatly appreciate the help and instructions, i'll try to answer your questions as soon as possible if you have any for me. Thanks and keep up the awesome work around here!
It's likely the wrong type of project. Make sure you choose 'console' and not 'win32' only
Topic archived. No new replies allowed.