The main reason I put it in KDevelop is that I don't know how to compile it from the command line. You want to tell me?

I did just manage to successfully compile. Still, it would be good to have some knowledge of what I'm doing here.