C++ User's Guide

Warnings

If compilation and linking are performed in separate steps, the same -xprofile option must appear in the compile as well as the link step.