Link in a static library built with gcc

Hi Kshi_tij,

Is it possible to build an application with the PGI compiler, but link in an external library built statically with gcc?

Yes, this is fine.

Though, it looks like your questions is more about gfortran compatibility rather than gcc. In general, different Fortran compilers are not compatible, specifically F90 features such as modules and allocatable arrays (due to the descriptor). Each compiler will have their own format for these (they’re not standardized). If you were using F77 interfaces between the two, then you’d be fine.

You’ll need an Adios2 built with PGI in order to use this module.

-Mat