Friday, May 21, 2010

Could anyone help me to write a C program on the computer since I am not able to find the compiler?

You can download Cygwin, which is a Linux environment for your PC. (This avoids the problem of having to create a dual-boot PC.) Cygwin includes the GNU compiler (GCC) and the GNU debugger (GDB) so you'll be able to compile your program.





Note that this will NOT allow you to create windows programs. It WILL allow you to create and test UNIX and LINUX programs on your PC.





You can also download a free C/C++ compiler from Bloodshed. I haven't given this much more than a cursory look-see, so I can't vouch for it.

Could anyone help me to write a C program on the computer since I am not able to find the compiler?
Hi,


I could help you with the code, But would you like to write on your own ?


(I would like that much better - make you self sufficient :-)


search sourceforge.net. they have many free compilers.
Reply:You could have been more clear on the question. I think you want to know how to write, compile %26amp; run a C program. For editors there are number of them freely available. For a sofisticated users(who does %26gt;100 line code), i would just eclipse with c/c++ plugin. We will use this some other day. For now all you need is gcc (gnu compiler collection), it includes c,c++, %26amp; compiler for lots of other programs. If you are using windos the you need to install cygwin to get this. If you are using Linux as your OS, then these are already built-in. To get cygwin go to http://www.cygwin.com/ %26amp; dowload , run setup.exe on the front page. You need active internet connection to run this. B'cos it asks for number of programs you want to install, make sure you have gcc checked. It then downloads %26amp; installs them. After installation open cygwin from start menu. write your c program from cygwin command line (also known as bash).. then run "gcc filename.c" . Then run "./a.out" to see the results.
Reply:Surely i could help you.


Mail the question to me


Mymail ID is exorcist_203@yahoo.com


No comments:

Post a Comment