DLL_IMPORT Statement
Lahey/Fujitsu Fortran

DLL_IMPORT Statement

Description

The DLL_IMPORT statement specifies which procedures are to be imported from a dynamic-link library.

    		

Syntax

DLL_IMPORT [::] dll-import-names
Where:

dll-import-names is a comma-separated list of procedure names.

Remarks

The procedures in dll-import-names must not be module procedures.

The procedures names listed in a DLL_IMPORT statement are "decorated" to match one of several calling conventions by using the "-ml xxx" switch at compile time.

Example

program main integer :: half,i dll_import half ! dll_import statement integer,dll_import :: twice ! dll_import attribute i=half(i) end program main