Problem when compiling

Hello Dave,
I’m experiencing the same issue.
I have also installed Ubuntu 17.10 and installed the pgi community edition 17.10. and getting the same errors. The code worked in Ubuntu 17.04.

In another post (pgc++ 17.10 has trouble with glibc 2.26) you tell that it is the gcc version that mostly creates incompatibilities. So, is there any hope of making pgi work changing the gcc version using “update-alternatives”? If so, what should I do?
Edit: I have installed gcc-5 and changed using “update-alternatives” but I’m still getting the error.

Many thanks,

Xavier