Try running
and see what it says. For me it says it's "gcc (GCC) 4.1.2". When you try to run your file you're doing it all right, but the game seems to complain it's not finding GCC version 4.2.0 (or newer). Hopefully it's not really that you should update your gcc, but with a quick look it does seem like it's that.