Depends what kind of program you're trying to write. If you're writing a normal command prompt program, the execution of your code begins with a function called main(). If you're writing a Windows program then your code begins with WinMain(). And if you're writing a DLL, your code gets called at DllMain().
So, C and C++ command line programs look like this
int main(void)
{
//your code goes here
return 0;
}
and a Windows app looks like this
#include <windows.h>
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
//your code goes here
return 0;
}
I think the problem is you've got your dev C settings wrong, and you're trying to build a command line program as a Windows program, and it thinks that WinMain() is missing.
Jim