If you must use g++ to link, then you will need to add the pgi libraries
'pgc++ -dryrun t.o' will show you the link line that we use.
At a minimum, you will probably have to add something like
-L/usr/pgi/linux86-64/lib -lpgatm -lpgmp -lpgc