DLL_EXPORT Statement
LF Fortran 95

DLL_EXPORT Statement

Description

The DLL_EXPORT statement makes a procedure that resides in a dynamic-link library externally available.

 	

Syntax

DLL_EXPORT [::] dll-export-names
Where:
dll-export-names is a list of procedures defined in the current scoping unit.

Remarks

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.

Example

function 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