compiler reccomindation

hello,

trying to learn c++, done a bit of c
could someone please recommend me a compiler please, something thats not too complex maby

thank you
closed account (48T7M4Gy)
Visual Studio, CodeBlocks, XCode all free.
Just google to get more details and download stuff :)
Hi,

The clang compiler is very good, it relies on g++ which is also good.

In terms of IDE's there are lots of them. There is QtCreator which one can use to code with the Qt Framework which has heaps of stuff.

There is also CodeBlocks, Eclipse and KDevelop, probably lots of others too, have a Google.

There is Visual Studio, but I don't have much experience with that, I prefer Linux OS.
thanks visual studio wins as both mentioned it.
thank you
There are problems with VS though.

It uses it's own MS compiler - so there might be non portable facilities in there.

MS has been way behind other compilers in terms of support for new standards (C++11, C++14). There is a new standard coming C++17, I wouldn't want to be waiting 2 or 3 years for MS to catch up. Clang has been the best at that, and I would take that as a first choice. Clang has very nice error messages, which is a great help - especially if one is learning.

closed account (48T7M4Gy)
They all have there ups and downs.

VS2015 has a distinct advantage that it is obviously close to windows and despite the reservations they cover all the committees AFAIK. XCode is the best I've seen but that locks in MAC. Codeblocks is pretty good especially if you use wxWidgets if you want to get away from windows.

As far as compilers are concerned I remember dumping mingw because there is an ongoing battle with the code developer bureaucracy over some esoterica in not updating stdio if I remember correctly.

Eclipse is crap and not worth the effort.

Any of the mainstream IDE's will get a C programmer up and running very quickly. Try the lot in time and narrow down to what suits.

Ubuntu/Linux et al have lifted their game above nerd stuff over the last couple of years. What they use I know not. If it is gui based it's probably good, in fact CodeBlocks is cross platform so there's another plus for codeblocks.

Of course there is first principles - scrap all the guis and play makefiles. I wish you an enjoyable 200 years startup.
Last edited on
closed account (48T7M4Gy)
And the elephants in the room are the online ide's such as:
http://cpp.sh/
ideone
coliru

and many others
They're not too bad for simple sandbox stuff.
my main reason for c is i want to program uprocessors, but maby if i master it use it fôr other stuff
closed account (48T7M4Gy)
arduino?
http://cpp.sh/ that looks perfect. wil try that first i think

i did try to download clang but really unsure what i need to downbload could someone please show me what i need to download please, which one

my background is electronics, i did tinker with auduino a bit and started to learn c there was a really good tutorial on youtube.

maby if i get to grips with c id like to progran more complex processors

thanks very much for the help

whats sandbox?
Last edited on
closed account (48T7M4Gy)
Try http://clang.llvm.org/ for clang

Xcode uses clang but the xcode GUI means you only see the end-product not the intracacies of direct hands on with clang.

Sorry mentioning arduino, I guess that's a bit downmarket to an expert. The reason I mentioned it was mainly for the sketchbook IDE they have.

The online IDE's aren't bad but limited for human input and file handling might be out. But they are good for a very quick start.
All the options mentioned are perfectly fine and work about as well when it comes to standards conformance (VS is not backwoods-behind). All compilers come with non-standard extensions as well.

Installing Clang is not as simple as with some of the other options -- you must first install a working GCC, then install a matching Clang, then configure Clang to use GCC's facilities.

Topic archived. No new replies allowed.