I\'m trying to do some really simple stuff in C++, but I can\'t find any information on how to tackle this. Even the book I have just says \"Just compile and run the program
The error is caused because you're compiling with gcc, which only default-links libc.
You need to compile with g++ so that libstdc++ is auto-linked in too.