How to specify the exported functions in a DLL

46 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Michael Ou

ungelesen,
22.06.2012, 21:53:3422.06.12
an 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

ungelesen,
23.06.2012, 02:42:0323.06.12
an 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
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten