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

Sharing of unit numbers / files between DLLs

ferrad01
Beginner
239 Views
I'm not sure if it was by chance or not, but we were previously able from DLL2 to write into a file created and opened in DLL1, by sending the unit number between the DLLs. This was when both DLLs were built with Intel V8. Now DLL2 is built with Intel V11.1 and this no longer works (DLL2 writes to FORT.36 where 36 is the unit number). DLL1 is still built with Intel v8.

Is this expected? Is there any way to get around it bearing in mind DLL1 is not ours?
0 Kudos
3 Replies
Steven_L_Intel1
Employee
239 Views
Both DLLs must be linked to the same set of DLL run-time libraries. My guess is that one or both of the DLLs is linked to the static libraries.
0 Kudos
ferrad01
Beginner
239 Views
That's it! We had dynamic before now static. So I guess the Intel version differences won't be a problem if I make both dynamic?
0 Kudos
Steven_L_Intel1
Employee
239 Views
No problem as long as the run-time DLLs you're using are the higher version.
0 Kudos
Reply