| Launch OptionsThe launch options dialog allows the user to specify how a Fortran executable project will be run from within Simply Fortran. If the executable resulting from the build process requires additional command line arguments or should be run from a certain working directory, these options are specifiable in this dialog. The options set in this dialog apply to both a normal launch and spawning the debugger. ExecutableThe executable entry is used to specify the name of the executable file to be started when either Launch is selected in the Build Menu or the Debugger is started via the Debug Menu. When the current project is an executable, this field will be the project’s target after compilation, and it will not be editable. If the project is either a shared library (DLL) or a static library, this field will allow the user to select an executable either by directly entering the path or using the Browse… button for launching and debugging. Normally this executable will call a routine within the library created by the current project. Command Line ArgumentsThese arguments are passed into the executable when the project executable is launched from within Simply Fortran. Redirecting Standard Input and OutputTo feed a file as input into a project’s target executable, the usual redirection operators can be used in the command line arguments field, as shown below: < file.in Conversely, the same can be done with the target executable’s standard output: > file.out In order for the above to work, the External Console option must be enabled. Otherwise, Simply Fortran’s internal console will control the standard input and output streams of the executable regardless of command line options. Working DirectoryThe working directory options specifies the directory relative to the project’s top-level directory in which the executable will be launched. This directory does not have to contain the executable program. External ConsoleWhen this option is enabled, the target executable will launch in an external command window outside of Simply Fortran. This behavior is necessary when the target requires a true terminal capable of escape sequences, arbitrary cursor positioning, or Windows terminal application programming interface calls. Additionally, if the Command Line Arguments are set up so as to redirect standard input or output, this options should also be enabled. When disabled, Simply Fortran will utilize its internal Console tab to perform all interaction with the target executable. If the target has the Windows GUI option enabled, this option is not applicable. Build Before LaunchWith this option enabled, Simply Fortran will always launch a build process prior to attempting to launch the target. This feature is useful for ensuring that the target always reflects any recent changes to source code. See Also |