Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

COMMON block access from C#

Intel_C_Intel
Employee
546 Views
I have a COMMON block with about 7000 variables that I would like to get read/write access to from C#. Is there some way to do this without having to write GetXXX/SetXXX functions?

-- Jon
0 Kudos
1 Reply
netphilou31
New Contributor III
546 Views
I think that if you declare your common block with the DLLEXPORT attribute, it should be accessible from outside directly (in the same way as a record or a derived type). I've already made this but between fortran dlls and it worked fine. I don't know if it will be the same between fortran and C# but you can try.
The declaration should something like:
!DEC$ ATTRIBUTES DLLEXPORT :: /COMMON_BLOCK_NAME/
0 Kudos
Reply