I\'m not too familiar with c++ and how instantiating objects work, so this is probably a very simple thing to solve. When I compile with g++ I get the error \" undefined re
You're probably not including Foo.cpp in your compile line. It should look something like this:
g++ main.cpp Foo.cpp -o testFoo