using fortran common block from dll created by gfortran

Arjen Markus
Thu Jun 25 07:15:00 GMT 2015

Hi Satish,

I would have expected the /cb/ notation to work, but if you export the
individual variables instead, it does get compiled. However, my test
program shows that the data in the main program are not the ones in
the DLL, even though I applied both DLLEXPORT and DLLIMPORT.

It might be better to use "accessor" functions/routines to get the
data from the common blocks in the C layer you are using.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list