0

This is the problem code. Please help!!

#include<stdio.h>

int mainn()
{
     printf("Hello World");
     return 0;
}

Tried fixing from yt videos but they suggest to save the file before execution. I did but it keeps failing.

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

This is what the terminal shows me.

New contributor
Aritra pal is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • mainn <- drop the second n
    – teapot418
    Commented 4 hours ago
  • Welcome! Please don't post pictures of text: post actual text. Commented 45 mins ago

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.