Different compilers seem to have different ideas about TR1. G++ only seems to accept includes of the type:
#include #include
If under Windows, add the 'tr1' directory to the system path. Then #include should work.
#include