The build menu gives access to capabilities related to checking, parsing and
compiling files, as well as creating and running executables.
note that this menu is fully configurable via the Targets
dialog,
so what is documented in this manual are the default menus.
See The Target Configuration Dialog.
If errors or warnings occur during the compilation, the corresponding locations
will appear in the Locations View. If the corresponding Preference is set, the
source lines will be highlighted in the editors (see
The Preferences Dialog).
To remove the highlighting on these lines, remove the files from the Locations
View using either the contextual menu (Remove category
) or by closing
the Locations View.
SHELL
environment
variable is defined (to e.g. /bin/sh
), then the syntax used to
execute the command is the one for this shell. Otherwise, the command
will be spawned directly by GPS without any shell interpretation.
makefile
property in the
Make
section of the project properties (see
The Project Properties Editor), this menu will be displayed, giving
access to all the targets defined in your makefile.
antfile
property in the
Ant
section of the project properties (see
The Project Properties Editor), this menu will be displayed, giving
access to all the targets defined in your ant file.
When running an application from GPS, a new execution window is added in the bottom area where input and output of the application is handled. This window is never closed automatically, even when the application terminates, so that you can still have access to the application's output. If you explicitly close an execution window while an application is still running, a dialog window will be displayed to confirm whether the application should be terminated.
When using an external terminal, GPS launches an external terminal utility that will take care of the execution and input/output of your application. This external utility can be configured in the preferences dialog (External Commands->Execute command).
The GPS execution windows have several limitations compared to external terminals. In particular, they do not handle signals like <ctrl-z> and <control-c>. In general, if you are running an interactive application, we strongly encourage you to run in an external terminal.
Similarly, the Run
contextual menu accessible from a project
entity contains the same entries.
SHELL
environment
variable is defined (to e.g. /bin/sh
), then the syntax used to
execute the command is the one for this shell. Otherwise, the command
will be spawned directly by GPS without any shell interpretation.
The Tools->Interrupt
menu can be used to interrupt the last compilation
or run command. Once you have interrupted that last operation, you can
interrupt the previous one by selecting the same menu again.
However, the easiest way to interrupt a specific operation, no matter if it was
started last or not, is to use the Task Manager
, through the
Tools->Views->Tasks
menu. It will show one line per running process,
and right-clicking on any of these lines gives the possibility to interrupt
that process.
If your application is build through a Makefile, you should probably load
the Makefile.py startup script (see the menu /Tools/Plug-ins
).