The DLL_EXPORT statement makes a procedure that resides in a dynamic-link library externally available.
SyntaxDLL_EXPORT [::] dll-export-namesWhere:dll-export-names is a list of procedures defined in the current scoping unit.
The procedures in dll-export-names must not be module procedures.
The procedures names listed in a DLL_EXPORT statement are "decorated" to match one of several calling conventions by using the "-ml xxx" switch at compile time.
Examplefunction half(x) integer :: half,x dll_export half ! dll_export statement half=x/2 end function half function twice(x) integer,dll_export :: twice ! dll_export attribute twice=x*2 end function twice