For using g++, use the additional link option "-lmpi++" which provides the missing library (this is what "mpicxx" does).
Alternatively, googling for "undefined reference to `PMPI::Request::ignored_status" shows that it is also possible to compile with option "-DMPI_NO_CPPBIND" (this prevents that the MPI CPP bindings are pulled in).