linker problem

I am getting a LNK2019 and a LNK1120 when i buil the folowing code.

#include
<iostream>
using namespace
std;
int
main()
{
cout <<
"Hello World"
<< endl;
}

what is the problem



Answer this question

linker problem

  • Chris_21

    So you add your own main method Try not checking the 'empty project' option when you create a console app.


  • Smitha

    The main problem is that you're not telling us what it's trying to link and failing.  There's nothing wrong with this code, the problem probably has to do with the type of project


  • abid1pak

    i don't know what the project type is. I'm new. but to create the project i went to file, project, empty project, and then named it.
  • linker problem