Geeks With Blogs
Tex-blog Mobile and other stuff
I was trying recently to test some new interesting features of the new upcoming C++ standard and decided to install gcc 4.4 which supports some of them. Since I mostly work with VS2005, I had some problems with installing gcc4.4 under OpenSuse 10.2. I have not found any good (==short) tutorials on doing this, so here is a howto for compilation and installation of gcc4.4:

# login as root, then
mkdir /usr/local/gcc4.4 && cd /usr/local/gcc4.4

# get latest snapshot, gcc-4.4-20080502.tar.bz2 (~55MB) was the last one at the time of writing this entry
tar xjf gcc-4.4-20080502.tar.bz2
cd gcc-4.4-20080502

# now get gmp and mpfr libraries, gcc make will compile them on its own
tar xjf gmp-4.2.2.tar.bz2
tar xjf mpfr-2.3.1.tar.bz2
mv gmp-4.2.2 gmp
mv mpfr-2.3.1 mpfr

md objdir && cd objdir
../configure --enable-languages=c,c++
make && make install

# ...several hours later (might be b-cos I added java)

# Just to verify its version is 4.4
gcc -v

Now its time to test some new cool features of upcomming C++0x. Status of current implementation of new features with links to pages with documentation, can be found here:

Some of the implemented and IMO most interesting new features are variadic templates and new decltype operator.

Nice description of variadic templates can be found here: Posted on Monday, May 5, 2008 7:39 PM C++ | Back to top

Comments on this post: Testing C++0x new features with gcc4.4

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Martinez | Powered by: