- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I would like to export a data object in a DLL. The write-up in the Help is not very clear (to me) on this. My DLL source code looks something like this:
MODULE a
INTEGER,PARAMETER :: ip = 1
!DEC$ ATTRIBUTES DLLEXPORT :: ip
END MODULE
This program compiles fine but neither DUMPBIN nor DependencyWalker show ip as an exported symbol. Could someone advice on this?
Thanks,
Jon
MODULE a
INTEGER,PARAMETER :: ip = 1
!DEC$ ATTRIBUTES DLLEXPORT :: ip
END MODULE
This program compiles fine but neither DUMPBIN nor DependencyWalker show ip as an exported symbol. Could someone advice on this?
Thanks,
Jon
- Marcas:
- Intel® Fortran Compiler
Link copiado
1 Responder
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
ip is not a variable - it's a "named constant" and not something you can export. Remove the PARAMETER and it should do what you want. Note that the global name will be A_mp_IP, by default.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora