Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Leith

(7,856 posts)
Wed Apr 14, 2021, 05:01 PM Apr 2021

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!

6 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Can anyone recommend a good C++ compiler to download for free? (Original Post) Leith Apr 2021 OP
my solution lapfog_1 Apr 2021 #1
gcc and clang are excellent and widely available RavioliMan Apr 2021 #2
I'm currently migrating from GCC to clang. Clang is next generation tech so I'd give it the edge nt Shermann Apr 2021 #5
look up cygwin/g++. Free and better than MS compiler for windows. Pobeka Apr 2021 #3
I would definitely second that.nt. drray23 Apr 2021 #4
Forget C++ CloudWatcher Apr 2021 #6

RavioliMan

(8 posts)
2. gcc and clang are excellent and widely available
Wed Apr 14, 2021, 05:10 PM
Apr 2021

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,725 posts)
5. I'm currently migrating from GCC to clang. Clang is next generation tech so I'd give it the edge nt
Wed Apr 14, 2021, 07:22 PM
Apr 2021

Pobeka

(4,999 posts)
3. look up cygwin/g++. Free and better than MS compiler for windows.
Wed Apr 14, 2021, 05:10 PM
Apr 2021

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.

CloudWatcher

(1,933 posts)
6. Forget C++
Tue Apr 20, 2021, 09:20 PM
Apr 2021

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!

Latest Discussions»Retired Forums»Website, DB, & Software Developers»Can anyone recommend a go...