file1.c:
int x; /* a declaration, and also a definition, external linkage */
#include// printf #include // exit int main() { printf( "Hello World\n" ); exit( EXIT_SUCCESS ); }
A real minimal Windows program.
#include windows.h
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow ) {
MessageBox( 0, "Hello World", "Caption", 0 );
return 0;
}