Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

C++11 Compiler? Free Or Paid?

I'm getting into computer programing to try and make some extra money on the side and I've been pulled into C++11, or C++1y (recently known as C++0y I believe). I've merely got two simple question about compilers. As far as open-source compilers go, as in GNU or something, they go are they indeed free to use so long as you release your source codes to the public? Are there any that are updated to the C++11 standard that you guys would suggest or would you prefer a paid-for compiler and why?

Thanks!
I would definitely stick with GCC. Here is a link to their C++11 feature adoption checklist for GCC 4.8
Quote:http://gcc.gnu.org/gcc-4.8/cxx0x_status.html
Clang/gcc do not force you to use open source licenses. Visual Studio (depending on the version) may though; DreamSpark and most discounted versions are an example that won't let you use it for commercial products. 2010 Express edition allows you to use it commercially, whereas 2012 does not.

For an IDE, Eclipse or Visual Studio are both excellent, and it is simple to just use another compiler to build for release versions if using DreamSpark (free products for students).

I use Visual Studio 2010 Express (not as much annoying highlighting) and gcc myself.
GCC supports C++11, just add the --std=c++11 flag to the end of your command. GCC also does not require you to make your product open source. If you're not into command line compiling, Code::Blocks is a great cross platform IDE that uses GCC.
C++11 is not out yet I guess, but most of it's features are already supported by GCC.
As stated before, stick with it.
(Sep 17, 2013 09:28 AM)daCloud ☁ Wrote:  C++11 is not out yet I guess, but most of it's features are already supported by GCC.
As stated before, stick with it.

What? What do you mean it's not out yet?
(Sep 17, 2013 09:41 AM)Shihanus Wrote:  What? What do you mean it's not out yet?

std::locale("en_US.UTF-8");

does not work in gcc. It throws no matter what you enter. If you leave it blank, it will use the C locale.

std::regex is still not implemented.. There's so much of c++11 tht gcc/g++ is missing.

Clang uses gcc/g++/mingw on windows so basically, it is the same.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by BiscuitPetFeb 26, 2017 10:15 AM 22 885 Feb 26, 2017 10:15 AM
Last Post: Onii
[.NET] by 4RG0SJan 22, 2013 12:34 AM 15 493 Jan 22, 2013 12:34 AM
Last Post: alex.inthi
[C] by vincentbelkinMar 15, 2012 09:57 PM 5 144 Mar 15, 2012 09:57 PM
Last Post: vincentbelkin