$ g++ joyTalker.cpp -o joyTalker.exe

You're not going to be able to just compile it this way.  You probably want to use cmake along with our build system, as explained in the tutorials.

Josh