C++11

Aug 27, 2012 at 2:12am
Hi im new to the forums and I was wondering how do i download C++11? or.. is it which compiler uses C++11? im not to sure :X but hopefully i think the jist of my problem is i would like to use C++11 wether it is a compiler or an actual download :) thanks!
Aug 27, 2012 at 3:38am
C++11 is only a specification.
Recent versions of g++ and clang already support all the important parts of C++11.
Aug 27, 2012 at 5:02am
could you link me? im honestly not exactly sure what your talking about sorry :(
Aug 27, 2012 at 11:23pm
thank you very much!
Aug 28, 2012 at 12:29am
Acctually how do i use clang...? i have codeblocks atm but im honestly not sure what to do with clang O_O its all a bunch of downloads and idk which one to use
Aug 28, 2012 at 12:53am
If you're on a Linux distribution, then you need to install the package clang and add it as a compiler in Code::Blocks (Settings/Compiler, copy the GCC compiler and replace gcc with clang and g++ with clang++ in the toolchain executables).
I don't think clang officially supports Windows yet.
Aug 28, 2012 at 2:10am
o ok so currently there is nothing for a windows computer to allow the use of C++11? if i read correctly? or just not clang?
Aug 28, 2012 at 2:15am
There is. g++ is part of MinGW. Visual Studio also supports a few C++11 features.
Aug 28, 2012 at 2:19am
so out of everything available which would be the best one? im thinking about
http://sourceforge.net/projects/orwelldevcpp/

but im really not sure atm... sorry if im asking some really noob questions :( dont mean to be a bother
Aug 28, 2012 at 2:24am
That's an IDE, not a compiler.
Download the latest MinGW release here: http://nuwen.net/mingw.html
And add the new compiler to Code::Blocks.
Aug 28, 2012 at 2:31am
o ok thanks is it best that i just download windows instead of using code blocks as it seems to be what everyones uses
Aug 28, 2012 at 3:45am
or what is the best ide to be best used with the minGW compiler?
Aug 28, 2012 at 4:51am
code::blocks
Aug 28, 2012 at 7:45am
closed account (o3hC5Di1)
Hi there,

Let's get a few things straight here:

- Compiler = A program that converts your source code into an executable file (.exe)

- C++11 specification = The latest "version" of C++, with additional features compared to the previous one.

- IDE = Integrated Development Environment, basically a program in which you write your code with additional features such as debugging, compiling, language references, etc.


There's no such thing as "downloading C++".
You will need a program to write your code (it can be as simple as notepad, but code::blocks is very popular).
In order to convert that C++ code into a file that you can execute (program), you will need a compiler.
On code::blocks for windows Mingw is a good choice, it supports a lot of the latest C++ features as someone mentioned earlier.

Hope that helps to clear things up for you.

All the best,
NwN
Aug 29, 2012 at 7:44am
yes :) thank you very much! just need to figure out how to use MinGw in codeblocks... XD
Last edited on Aug 29, 2012 at 7:45am
Aug 29, 2012 at 3:19pm
MinGW comes with Code::Blocks (if you downloaded the Code::Blocks+MinGW bundle), so you don't need to do anything.
Aug 29, 2012 at 7:04pm
Topic archived. No new replies allowed.