visual studio fatal error LNK1120:

14,213

You created a Win32-Project! Make sure that you choose Console Application in the project wizard.

Share:
14,213
user 123456
Author by

user 123456

Updated on June 04, 2022

Comments

  • user 123456
    user 123456 almost 2 years

    just i wanted to make a program using viual stidio 2010 when i do build i have this excaption i just wrote empty main c++ program (no syntax errors)

    what i got is:

    1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
    1>c:\users\dell\documents\visual studio 2010\Projects\test\Debug\test.exe : 
    fatal error LNK1120: 1 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    

    code is :

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

    please help me to fix it asap thanks ,,