Can anyone recommend a good C++ compiler to download for free?
I've been thinking about teaching myself C++ (don't worry, I have a BS in computer science and I can read and understand most C++ code), but I need a decent compiler and I don't have piles of money to spend on it.
Any recommendations on the best book to learn from are appreciated as well.
Thanks in advance!
lapfog_1
(30,170 posts)g++ on a Linux machine... buy a raspberry pi for teaching yourself
RavioliMan
(8 posts)I do most work on a Mac, so clang is the default there.
On Windows, I install GCC g++ via cygwin which is a UNIX-like environment that will provide a nice command-line interface to many things including compilers.
There is also the free Eclipse IDE which works across all of the above. I prefer command line.
Shermann
(8,656 posts)Pobeka
(4,999 posts)It was far better at producing reliable code (math intensive, optimization algorithms) when we benchmarked it about 8 years ago now. I assume it's still going strong.
drray23
(7,967 posts)CloudWatcher
(1,924 posts)Naw, forget C++, learn Python instead! I'm only 1/2 kidding, C++ is almost a historical language now.
And you kinda forgot to mention what platform you'll be using. If you've got a spare HDMI monitor and USB keyboard/mouse, then a Raspberry Pi can be a lot of fun (and runs Pi-hole too). If you've got any Linux box, then the compiler comes with it. If you've got a Mac, then Xcode is free (and omg learn Swift!). If you've got a Windows machine ... well, good luck!