Why won't the simple console program below compile with Pelles C?
It compiles and runs flawless with gcc and clang.
With Pelles C I get either "No target architecture" or "unresolved WinMain".
Anyhow it is a console program, so I shouldn't need WinMain at all IMHO.
// --- Set console cursor to {10,10}
#include <stdio.h>
#define _CONSOLE
#include <windows.h>
void atxy(int x, int y) {
HANDLE hStdout;
COORD coord;
hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
coord.Y = y, coord.X = x;
SetConsoleCursorPosition(hStdout,coord); }
int main (void) {
atxy(10,10);
return 0; }