Compile and Run gFortran Program using Textpad

. Monday, March 14, 2016
  • Agregar a Technorati
  • Agregar a Del.icio.us
  • Agregar a DiggIt!
  • Agregar a Yahoo!
  • Agregar a Google
  • Agregar a Meneame
  • Agregar a Furl
  • Agregar a Reddit
  • Agregar a Magnolia
  • Agregar a Blinklist
  • Agregar a Blogmarks

Programs needed:

  1. MinGW
  2. Textpad

Adding the Compiler

Open Textpad, Configure > Preference > Tools

Click Add > Program > Locate your MinGW installation directory > open gfortran (mine is at C:\MinGW\bin\gfortran.exe)

Parameters: -o $BaseName $File
Initial folder: $FileDir (leave as is)

Regular Expression: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\­([0-9]+\):

Registers:
File: 1
Line: 4

Click Apply

Adding the Command to Run

In Tools, click Add > DOS Command > type cmd.exe

Parameters: $BaseName
Initial folder: $FileDir (leave as is)

Uncheck "Capture output"

Click Apply / OK

You can now compile and run gFortran programs by going to
Tools > External Tools

Add an Environment Variable

Next, go to Control Panel > System > Advance system settings > Environment Variables
Under System variables, click New

Variable name: GFORTRAN_UNBUFFERED_ALL
Variable value: Y

0 comments:

me me