Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

Creating DLL and exporting data to be used in PLAXIS

Onur_Kacar
Beginner
1,130 Views
Hi,
I am a very new Fortran user. I need to write a subroutine,called "User_Mod" and create a DLL file. This DLL file is used by a software, PLAXIS which is a finite element program. I included the "!DEC$ ATTRIBUTES DLLExport :: User_Mod" to export data to the DLL. When I do this, the DLL is recognized by the software and it works fine. However, there is another subroutine that includes several subroutines defining some units and properties to be used by the program. This subroutine is called "usradddf.for" I need to export this data to the DLL as well. However, when I use the same "!DEC$ ATTRIBUTES DLLExport :: usradddf" and I add this subroutine to the source files along with the "User_Mod",the DLL doesn't work anymore. I also tried to include the "usradddf.for" with the include command at the end of the "User_Mod" but again, the DLL didn't work. Are there any suggestions how to fix this? Thanks
0 Kudos
1 Reply
DavidWhite
Valued Contributor II
1,130 Views
The exported routine name is case-sensitive, so you may need to add an alias to the Export statement, e.g.

!DEC$ ATTRIBUTES DLLEXPORT,ALIAS:'usradddf' :: usradddf

Regards,

David

0 Kudos
Reply