I am working on a program inversion 2108 of parallel fortran. The program has a main executable communicating with a dll. I used the information in the article "coding requirements for sharing data in DLL's".
I have a common named Reserves, and a subroutine call GetReserveFund. The following statement was added to the main program:
!Dec$ATTRIBUTE DLLEXPORT :: GETRESERVEFUND, /Reserves/
I then added this code the main program:
!Dec$ATTRIBUTE DLLIMPORT :: GETRESERVEFUND, /Reserves/