Running The HelloWorld App in Windows
Hi guys i'm new to C, and I tried compiling the HelloWorld application.
In a linux environment, I compiled with the command:
The file compiled successfully and I got a file, "a.out". I executed the file and it worked.
I again compiled the file, but with the -o option, so that I could get an .exe file.
I then transferred HelloWorld.exe to my desktop on my windows platform, and tried to execute it in the windows environment.
gcc HelloWorld.c -o HelloWorld.exe
Upon execution, a terminal window popped up, and did nothing. No text was displayed.
How do I make a windows-compatible executable? Am I missing any options to include with the compiler?