Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22004

undefined reference to `WinMain@16' error

$
0
0

Getting error:c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'collect2.exe: error: ld returned 1 exit status

while compiling a simple c program in Virtual Studio Code.

My Code:

#include <stdio.h>int main(){    printf("Hello World");    return 0;}

I have also installed mingw software even i have give the environment variable. Still getting this error.


Viewing all articles
Browse latest Browse all 22004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>