Accessing variables in a FORTRAN module using C

Dear all,

first of all apologize if this topic has been already discussed in the past. I tried to track the information using google and the internal search without success. My bad.

What I am looking for a way to accessing variables in a FORTRAN module using C. Something related to PGI, portable across pgfortran and pgcc (and eventually GNU)

Something similar to the technique described for Intel here

Any suggestion?


This page sort of addresses the issues you are asking about:

However, it does not specifically address the topic of accessing variables declared within a module. I will check into this, and see if this is possible with PGI compilers.

Best regards,


Thanks Chris, much appreciated!

This page might also help you:

Good luck!