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

Problem with console from IMSL and dll

patrice_nortiergreno
422 Views
Hello,

I want to make a dll using IMSL routines.
I have exactlythis known bug (see below) that was supposed to be fixed
I use version 11.0.075, I cannot change anything inside IMSL since the source code is not provided.

Thank you
Patrice

Reference Number : DPD200110270
Version : 11.0
Operating System : Windows
--------------------------------------------------------------------------------
Problem Description
If a non-console application ("Windows Application" or other that does not create a console window automatically) calls the Win32 API routine AllocConsole to create a console, a Fortran WRITE to the "console" will fail with:

forrtl: severe(38): error during write, unit -1, file CONOUT$

--------------------------------------------------------------------------------
Resolution Status
This problem is corrected as of version 11.0.072 of Intel Visual Fortran. A workaround is to write to unit 0 instead of unit * or 6. If you are seeing a similar issue with a later version of the compiler, please contact Intel Support.


0 Kudos
1 Reply
Steven_L_Intel1
Employee
422 Views
I don't quite understand the problem. You don't need to recompile IMSL - the fix for this issue is in the Fortran run-time library. If you build your DLL with 11.1 it should work.
0 Kudos
Reply