Silverfrost Forums

Welcome to our forums

Syntax of Exporting DLLs

25 Mar 2009 5:14 #4374

Hello,

I am trying to transform F95 code from and Intel compiler to be Silverfrost compatible. The one thing I am getting stuck on is exporting dlls. I am trying to get a function in a dll to export and be named what I want.

The code I am trying to translate is:

!DEC$ ATTRIBUTES DLLEXPORT :: Hrw_OpenMI_Initial_Out_Values !DEC$ ATTRIBUTES ALIAS:'Hrw_OpenMI_Initial_Out_Values' :: Hrw_OpenMI_Initial_Out_Values

where Hrw_OpenMI_Intial_Out_Values is a function in a dll.

I know that !DEC$ is replaced by !FTN95$, but I haven't been able to work out the remaining syntax and haven't been able to locate an appropriate section in the user manual.

Thanks for any help!

3 Apr 2009 11:15 #4394

Working from memory I suspect that you cannot export using lower-case letters unless you can do this via a SLINK command. I am assuming that you are using Win32 and not .NET.

Have a look at the SLINK documentation in the help file FTN95.chm.

Please login to reply.