ftello64 and large file support with pgCC

I’ve installed PGI workstation v 11.5 on RHEL4. I have millions of lines of C++ code, plus some token C code, that builds with g++/gcc. I am trying to port it to PGI pgCC and pgcc.

I have a module that has calls to ::ftello64 and ::fseeko64, these calls error out on compile with pgCC. I see the function prototype in /usr/include/stdio.h which is included in my module, and I’m defining __USE_LARGEFILE64 on the command line.

What do I need to do to get this module to compile?
Thanks.