- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page