Ok, someone just told me to add

CONFIG += exceptions

to the .pro file... strange because as an example it was supposed to be ready to be compiled... I'm having other problems like this but I assume I'll be able to solve them messing with the .pro file.

Thanks for your time