I’m trying out some C programming with the Code::blocks IDE in Kubuntu Linux the KDE version of Ubuntu. While I could get away with using a regular text editor like Vim, I chose to make use of the luxury of a full blown Integrated Development Environment. Both the opensource C/C++ compiler GCC and Code::Blocks are free and easily obtained through apt-get on Ubuntu Linux or Debian based distributions.
~#sudo apt-get update
~#sudo apt-get install codeblocks gcc
note: on Red Hat or Fedora use ~#su -c ‘ yum install codeblocks gcc’
Running the debugger is real easy, make sure you compile with produce debugger symbols by selecting this in compiler and debugger settings > global compiler settings.
you might run into an gdb console error if the console settings are set to xterm. I ran into this and tried with exchanging xterm for konsole with success after all we are using KDE.
Have fun!


