FIX: Compiler Hangs If FL Environment Variable Long

ID: Q76948


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN for OS/2, version 5.1


SYMPTOMS

If the FL environment variable is set with the /link option to a large character string, the Microsoft FORTRAN version 5.1 compiler may hang. The following environment setting will generate this error:

set fl=/link llibf7r.lib+llibc7r.lib+graphics.lib


CAUSE

A buffer within the FL.EXE program is overflowing because of the long string passed for the /link option.


RESOLUTION

To avoid overflowing this buffer, put spaces in the string passed to the /link option to break up the string. The example below illustrates this solution:


   set fl=/link llibf7r.lib + llibc7r.lib + graphics.lib 


STATUS

Microsoft has confirmed this to be a problem in Microsoft FORTRAN version 5.1 for MS-DOS and OS/2. This problem was corrected in FORTRAN PowerStation.

Additional query words: 5.10

Keywords :
Version : :5.1
Platform :
Issue type :


Last Reviewed: November 1, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.