Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

demo code specifically dll_shared_data

steve_k_3
Beginner
943 Views

I recently downloaded composer edition XE 2015 update 2 for trial and I am trying to get 2 programs to share data, I have tried several things that I saw online to accomplish this, the 2 programs both will link but they do not share the data (i.e. the variable has one value in one program and a different value in the other)... I specifically have been trying a dll and the !DEC$ ATTRIBUTES DLLEXPORT (and DLLIMPORT) method 

I see there is a sample program called dll_shared_data taht is supposed to illustrate this functionality, but this solution does not appear to be included in what I downloaded... can anyone post this code snippet or tell me where it is available?

Thanks

0 Kudos
1 Reply
mecej4
Honored Contributor III
943 Views

If you installed into the default location, you will find C:\Program Files (x86)\Intel\Composer XE 2015\Samples\en_US\Fortran\DLL.zip. Extract that file into a working directory, and you will find two subdirectories, one of which is DLL\DLL_Shared_Data. This is the example you sought.

0 Kudos
Reply