English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how to convert c program to executable file?

2007-02-15 04:00:22 · 5 answers · asked by sanat m 1 in Computers & Internet Programming & Design

5 answers

With a C compiler and linker.

2007-02-15 04:02:37 · answer #1 · answered by Lisa A 7 · 2 0

You need to compile the code. On windows the easiest way is to get Cygwin and the GCC compiler. Then simply navigate in a command window to your source file. Then typ

gcc -o

2007-02-16 00:38:19 · answer #2 · answered by FireStorm 2 · 0 0

You need to use a c compiler. There is one for windows called Dev c++ .. it compiles c and c++ programs

here is the link:
http://www.bloodshed.net/devcpp.html

Dev-C++ is really an IDE ( Integrated Development Environment) but it will install the compiler you need and you can use it to easaly compile you programs

2007-02-15 12:06:18 · answer #3 · answered by asdf_ftw 2 · 0 0

The specifics of the answer will vary from OS to OS.

If the program is called "program.c", under Linux,
you might be able to do something like:

gcc program.c -o program

and then simply run "program". This will compile
the program and then link it in with the various
run-time libraries it requires.

Any Windows answer will depend on which compiler
you have installed.

2007-02-15 12:04:48 · answer #4 · answered by Elana 7 · 1 0

I would try compiling it.

2007-02-15 12:02:41 · answer #5 · answered by scruffy 5 · 1 0

fedest.com, questions and answers