Visibility Flag

Is there a PGI equivalent to the GNU -fvisibility compiler option? I’m trying to port a Windows DLL to a Linux shared object and I need to hide all the shared object routines from the global environment except for the single interface routine.

Hi carandol,

Unfortunately, we do not have an equivalent flag.

What language are you using? If you’re using ‘C’ then you can declare your functions using the ‘static’ keyword to hide them.

  • Mat