Tuesday, July 14, 2009

I am interested in learning C, but I dont have a good, free C compiler. Do you know of one?

I'm a novice concerning Command Prompt, and not well versed in techie lingo was therefore effectively rendered completely baffled when I found a seemingly good C compiler that was called Digital Mars C/C++ Compiler 8.47. (I couldn't understand how to compile a program even after reading the readme) Do you know how to use this compiler or do you know of a compiler that is easy-to-use and is free? Thanks in advance

I am interested in learning C, but I dont have a good, free C compiler. Do you know of one?
%26gt; I'm a novice concerning Command Prompt, and not well versed in techie lingo





Then you'll have to work to change that. You can't say you want to get into C, without making any effort to increase your knowledge. Sorry, doesn't work that way.





%26gt; Do you know how to use this compiler





Detailed in the readme. If you don't understand what the readme is saying, try Google first, and then ask a question regarding it. But in general (regardless of compiler), the process is to type your code up in plain text. Save it as a file. Then on the command line call the compiler, with the file as an argument. The exact arguments you pass in are detailed in the compiler documentation.





%26gt; do you know of a compiler that is easy-to-use and is free





Visual C++ Express. (It compiles C code as well). Also, MingW (windows port of gcc). Perhaps you want an IDE? IDEs provide an environment where you can type in code and with a click have it compiled. I use Code::Blocks. If you have the money, you can get Visual Studio. wxDev-C++ is also an option.
Reply:Go with Microsoft Visual C++ Express, you don't have to use the command line. You get a much more intuitive interface that's driven towards creating software, not learning commands to throw at the compiler.
Reply:The favourite of many C programmers around the world is Turbo C++. Also very popular is the Borland Compiler.


Both these compilers are difficult to configure before use, but Borland can be done with much ease when instruction from this site are followed.


http://csjava.occ.cccd.edu/~gilberts/bcc...


To compile a program in TC, save the source Code with the appropriate extension(.c for C and .cpp for C++) and hit Ctrl+F9. That's it.


To do the same with Borland C++, you have to save the file with the extension and then click tools%26gt;build. An .exe file with the same name is created in the same folder as the source code(the original program), which when double-clicked runs the program.
Reply:I've always like Dev-C++. You can get it here:





http://bloodshed.net/dev/devcpp.html





The entry titled:


Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2


Should have everything you need to edit and compile source code in C, and C++ for that matter.


No comments:

Post a Comment