Well, Just installing GCC won't do any good. You need to install the Libraries too!
I'd suggest you to install the
build-essential Package.
sudo apt-get install build-essential
Edit: On the Lighter note, For a good editor, Try Geany. It kinda supports compile and run by just pressing F5