Monday, May 24, 2010

Programming in C++?

Hi





I've been into computers for a long time and i've been


looking for a good 'compiler' for C++


i have turbo C++ but no matter what code i use


it error's, can anyone give me a compiler apart from


Visual C ect...

Programming in C++?
My favorite free C++ development environment it to use the version of g++, the C++ interface to gcc, that comes optionally with cygwin, the windows-based GNU/Linux emulator.





Along with that I use Eclipse with the CDT plugin as my IDE. All three are free. All three are professional grade (not crippled freeware versions of $ware dev environments). All three work together very well and are not trying to sell you anything.
Reply:GCC, it's completely free and open-source.





http://gcc.gnu.org/
Reply:borland c++
Reply:Bloodshed Dev-C++ (its the one we use in the class)


free and good.


http://www.bloodshed.net/devcpp.html
Reply:mingw developer studio





free
Reply:Here ya go. A whole list of compilers with links:





http://www.thefreecountry.com/compilers/...





Turbo C++ is very good but out of date. I'm VERY fond of Digital Mars C Compiler which with the STL library will compile C++ (in the latest iterations) but it can be challenging to install. I've switched to Linux, too, so I have GCC installed as a matter of course. Windows ports of GCC include Dev-C++ (which includes mingw), and Cygwin which is essentially a Unix emulator for Windows with GCC. I've actually used most of them, but I've been using C since about 1990.
Reply:It's worth mentioning that MinGW is a port of GCC (which is a Linux compiler), and Dev-C++ is an IDE that uses MinGW (by default)... essentially, if you're on a Windows platform, everyone above has suggested the exact same thing, whether they know it or not.





On the plus side, MinGW's port of GCC is easily the best compiler on Windows and Dev-C++ is not half bad for an IDE. You may also consider Code::Blocks which is another IDE that uses GCC.





Good luck on your decision.
Reply:Dev C++ is what I use
Reply:Turbo C++ was developed prior to the standardization of C++, so modern C++ code will invariable fail to compile with it. There is absolutely NO reason to still use this product today. In fact, it's a DOS app, if you tried to run it in Windows Vista, it wouldn't even run.





There are multitudes of compilers and IDEs for C++. I am going to make a few assumptions based on your question: you are running windows and you really want an IDE (integrated development environment) rather than just a compiler.





Here are my suggestions:


http://www.codeblocks.org/ (very lightweight, but advanced)


http://www.eclipse.org/cdt/ (this is a beast, written in java, but it's got a lot of features)


http://www.bloodshed.net/devcpp.html (no longer developed, but is easy to use)





There are many more free IDEs for Linux and Windows. If you're just looking to compile a simple one file program (hello world type) you can just use a compiler -- gcc will work. Mingw is a windows native(ish) version of gcc, but it's a little confusing to install. Another option is to download Cygwin and install gcc inside that.


See www.mingw.org and www.cygwin.com


No comments:

Post a Comment