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

I/O units and DLLs

dbruceg
Beginner
449 Views

I had a rather sour experience last night and I'm hoping that I misread the implications.

Obviously, if you open a file anywhere in a program linked as a single .exe, the unit number assigned to that file may be used anywhere in the program. Can the same thing be said if you split that program into a bunch of DLLs?

Bruce

0 Kudos
2 Replies
Steven_L_Intel1
Employee
449 Views
Yes, if.... If you make sure that the DLLs and your EXE are all linked to the DLL form of the run-time libraries. This is the default when you create a DLL project but you have to ask for it when creating an executable project. In the project properties, select Fortran..Libraries and set "Use run-time library" to "DLL" or "Multithreaded DLL" - make sure that it matches the same setting as your DLL project(s).
0 Kudos
dbruceg
Beginner
449 Views

Steve:

I did indeed have a problem, which was fixed by following your directions. Thanks yet again.

Bruce

0 Kudos
Reply