|
|
Question : Compiling and producing an exe
|
|
Hi guys hope you can help.
Im a total newbie to this, so please bear with me.
I have a file with a .c extension.
Let's say it is called
tobeexe.c
I want to turn this .c file into an executable to run on a windows machine.
I think i have to use a compiler like...
gcc -o tobeexe tobeexe.c
I ran this on a linux box and this makes a file called tobeexe
Can I do this guys, and what other steps do I need to do in order to produce an exe file to run this on a windows machine?
Thank you.
|
Answer : Compiling and producing an exe
|
|
You have to get a Windows compiler (with IDE preferably). Popular ones are either Visual C++, or Dev-C++.
The latter can be downloaded from :
http://bloodshed.net/devcpp.html
(it is based on the Mingw port of the gcc compiler).
Once you've chosen a compiler, you can simply create a source .c file and then compile it. A .exe file will be created which you can then execute.
|
|
|
|