Complier Error : undefined reference to `WinMain' , ld returned 1 exit status

I dowlanded a onsemi Ide and I only print "Hello world " but ı have a problem. How can I solve this issue?
I create a C/C++ project and main.c file .I wrote my code in this main.c file ;
Error :

Thank you!

@Darkalles

Please try this:

  1. File → New → C Project → Executable → Hello World C Project
  2. Give it another name and pick a location for it
  3. Select a tool chain
  4. Press FInish
  5. delete or modify /src/.c
  6. add your own code to /src

Thank you for using our community forum!

thanks for your response. I saved the main.c file and solved :slight_smile:

2 Likes