Programs needed:
- MinGW
- Textpad
Adding the Compiler
Open Textpad, Configure > Preference > ToolsClick 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
Under System variables, click New
Variable name: GFORTRAN_UNBUFFERED_ALL
Variable value: Y
Add an Environment Variable
Next, go to Control Panel > System > Advance system settings > Environment VariablesUnder System variables, click New
Variable name: GFORTRAN_UNBUFFERED_ALL
Variable value: Y











0 comments:
Post a Comment