Well... At least you've got the firsts out of the way...
There's a couple of things...
1) Next time create a new project as a *win32 console program* ... (File -> New -> Project)
If you look in the AddIns section you will find an addin called
Workspace Manager I wrote to make project creation a lot simpler.... Read the
AddIns FAQ for instructions on how to install addins. In the manager the defaults are set so that you won't get these problems (of course more advanced users can still change them)
2) Write your program like this...
#include <stdio.h>
int _cdecl main (void)
{
puts("Hello World!\n\n");
return 0;
}
There were two problems in your internet code...
A) The calling convention is not specified
B) The operating system expects a returned value that wasn't there.
3) Open the Pelles C help file; Menu -> Help -> Contents then click your way into...
Contents -> Integrated Environment -> POIDE Integrated Environment -> My first project
and give that a read.
But mostly, you should read....
THIS ... you're not going to learn programming by taking code snippets off the internet and randomly trying them out. All that does is frustrate.
Welcome to the forums...