using fortran common block from dll created by gfortran

Arjen Markus arjen.markus895@gmail.com
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.

Regards,
Arjen

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list