Thursday, July 9, 2009

C programming?

how to convert c program to executable file?

C programming?
With a C compiler and linker.
Reply: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.
Reply:I would try compiling it.
Reply: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
Reply: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 %26lt;sourcefilename%26gt; -o %26lt;exeFilename%26gt;


No comments:

Post a Comment