Compiling FORTRAN Programs in the M Editor

Last reviewed: July 17, 1995
Article ID: Q63536
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS and OS/2 versions 5.0 and 5.1

SUMMARY

To compile Microsoft FORTRAN version 5.00 programs and view error messages within the M Editor, add the following lines to the TOOLS.INI file:

   extmake:.for.obj fl /c /nologo %|F
   Nextmsg:Shift+F3

MORE INFORMATION

To compile a FORTRAN program that is loaded in the M Editor, type ALT+A, CTRL+F3. This will run a compilation according to the extmake switch above. In the extmake switch above, %|F tells the M Editor to compile the program that has been loaded. Other compile options can also be added to the extmake switch. If error messages are generated, they will appear at the bottom of the screen and the cursor will be placed at the corresponding error in the program. To move the cursor location to the next error message, press SHIFT+F3.

At least 480K must be free before executing the M Editor when compiling FORTRAN programs that are loaded in the M Editor. A "D2027 : could not execute `C:\f1.exe'" error may occur if not enough memory is available. For more information on this topic, query on the following words:

     D2027 and M EDITOR

Note: The /nologo compilation option is an undocumented option that stops the Microsoft copyright logo from appearing when compiling. Compiling programs in the M Editor under MS-DOS require use of the /nologo option; otherwise, the first error message will not be displayed. For more information on this problem, query on the word "NOLOGO".


Additional reference words: kbinf 5.00 5.10
KBCategory: kbprg
KBSubcategory: FORTLngIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.