c++ - Very first build error after installing Visual Studio 2013. fatal error LNK1561: entry point must be defined -


i guess simple actually, since i'm newbie in c++ i'm unable understand did wrong. of answers (like answers this question) suggest this:

project name -> properties -> expand linker tab -> system -> subsystem:

and change subsystem different types. tried it, gave me error:

fatal error lnk1120: 1 unresolved externals 

so assume wrong way. when created project chose visual c++ -> general -> empty project.

my main method int main(); , return 0;. did before in eclipse , fine.

please, should configure launch project successfully? thanks.

this how looks:

#include <iostream>  using namespace std;  class source{     int main(){          cout << "out" << endl;          return 0;     } }; 

i think may change to:

#include <iostream> using namespace std;  //class source{     int main()     {         cout << "out" << endl;         return 0;     } //}; 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -