2019 LNK ERROR - How to resolve?

Asked

Viewed 2,112 times

3

I’m having trouble with Visual Studio 2017.

This comes up when I compile:

LNK2019 undefined external symbol _Winmain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) Win32project2

That was the code I wrote, simple just to start and test if everything was ok.

#include<stdio.h>

int main()
{

    int n = 0;


    scanf_s("%d", &n);

    return 0;
}

1 answer

3

Browser other questions tagged

You are not signed in. Login or sign up in order to post.