Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Exporting data in a DLL

Jon_D
Novo colaborador II
384 Visualizações
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
0 Kudos
1 Responder
Steven_L_Intel1
Funcionário
384 Visualizações

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