- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to import a subroutine defined in a dll I built in Delphi in my fortran code.
How can I tell the compiler that I don't want the underscore prefix when using the dllimport command?
for now I have something like:
!dec$ attributes dllimport :: myfunc
and I specified in the visual studio environment that I am using standard calls and names in capital letters. However, the compiler always add an underscore prefix and throw an error upon linking because it cannot find the _MYFUNC external symbol (the name of the subroutine is MYFUNC in the dll and associated lib file)
Sincerely,
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!DEC$ ATTRIBUTES DLLIMPORT, ALIAS: 'MYFUNC' :: MYFUNC
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