Fatal Error / Unsolved External

I keep on getting this error.

1>------ Build started: Project: SomethingElse, Configuration: Debug Win32 ------
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>C:\Users\AK\documents\visual studio 2010\Projects\SomethingElse\Debug\SomethingElse.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I've been using Visual Express 2010 recently. Code::Blocks compiles to the code just fine.

1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;
#include <windows.h>

int main ()
{
cout <<"Hello World\n";
system ("pause");
return 0;
}


Just some scraps to see how the compiler works. It doesn't.
Looking up the common errors for this, ive seen that people usually have no main (), or they've make the incorrect project. Some forget main.cpp.
Im absolutely positive that I have done these steps correctly.

I believe the problem may be in the Linker, but I have no clue how to reset this to normal or what to do to fix this.
I was trying to get a couple graphics library's in there before, that might have screwed it up. Any help?

Thanx in advance.
What project did you choose ? Empty project ?
Create a new win32 - console application, delete wizard generated code and add your own.
Topic archived. No new replies allowed.