I wonder if any version of gpc for linux is compliant or conformant with the Linux Standard Base. When I run your hello program through their lsbappchk it gives messages like this:
FAIL Symbol isnanl is used, but is not included in LSB 3.2 (Core & C++ & Desktop)