How to specify the exported functions in a DLL

51 views
Skip to first unread message

Michael Ou

unread,
Jun 22, 2012, 9:53:34 PM6/22/12
to gnu-f...@googlegroups.com
supposed I have multiple subroutines and functions in a project, but I just need some of them. How to specify which to export like the Intel Fortran identifier "!DEC$ ATTRIBUTES DLLEXPORT"?

Thanks

Tobias Burnus

unread,
Jun 23, 2012, 2:42:03 AM6/23/12
to gnu-f...@googlegroups.com, Michael Ou
See "GNU Fortran Compiler Directives" at
http://gcc.gnu.org/onlinedocs/gfortran/Mixed_002dLanguage-Programming.html

Contrary to the Intel Fortran compiler, in gfortran one should combine
the directives with the C binding ("Interoperability with C"); thus,
there is no directive to change the binding name (like Intel's !DEC$
ATTRIBUTE ALIAS'name') but one uses the normal Fortran 2003/2008 way of
BIND(C,name='name').

Tobias
Reply all
Reply to author
Forward
0 new messages