I am getting this error when compiling a C++ program using the 17.5 version of the pgi compiler ( pgc++ 17.5-0 64-bit target on x86-64 Linux -tp sandybridge)
error: namespace “std” has no member “function”
The curious thing is that it compiles in some machines and fail to compile in others. I all the machines I am using the same pgi compiler.
In one of the computers where the code compiles has g++ (Debian 6.3.0-18) 6.3.0 20170516. Another one working fine has g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4).
In one of the failing computers has g++ (GCC) 6.2.0 installed.
What else should I look at?
Thanks in advance.