How to enable C++11 in Eclipse Juno/Kepler/Luna CDT?

There’s two things you have to do, first you need to setup your compiler, then you need to setup CDT’s language processor. Since you didn’t mention which compiler you’re using, I’ll assume it’s GCC but the steps will be similar for other compilers. (Note that you need a compiler that supports C++11, of course.) Setting … Read more

How to enable gdb pretty printing for C++ STL objects in Eclipse CDT?

This is the solution that works for me. Download ( http://www.gnu.org/software/gdb/download/) and install latest gdb (i.e. with –prefix $HOME). It supports python scripting. Get python pretty printers by executing svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python in a directory of your choice (i.e. $(HOME)/distribs/gdb_printers). You will get ‘python’ subdirectory in the checkout directory. Put this in your $(HOME)/.gdbinit file … Read more