- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a DLL written in C++ on Windows, that I want to convert to a shared object library on linux. The C++ work is pretty straightforward. But to access the .so on linux, I don't know how I would change this part of the interface statement in FORTRAN:
!DEC$ ATTRIBUTES DLLIMPORT
I'm using Intel fortran compilers on both platforms, but my code needs to be portable to as many compilers as possible.
John
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You do not need a DLLIMPORT directive on Linux. Of the operating systems we support, only Windows requires these. And for Windows, you do not even need DLLIMPORT if you are calling routines (you do still need DLLEXPORT or a .DEF file to define the routines to be exported.) DLLIMPORT is required for imported variables on Windows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve.
John
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page