[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This chapter describes how to compile files, build executables and run
them. Most capabilities can be accessed through the Build
menu item,
or through the Build
and Run
contextual menu items, as
described in the following section.
When compiler messages are detected by GPS, an entry is added in the Locations tree, allowing you to easily navigate through the compiler messages (see 2.8 The Locations Tree), or even to automatically correct some errors or warnings (see 13.3 Code Fixing).
9.1 The Build Menu
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If errors or warnings occur during the compilation, the corresponding locations will appear in the Locations Tree. If the corresponding Preference is set, the source lines will be highlighted in the editors (see 15.1 The Preferences Dialog). To remove the highlighting on these lines, remove the files from the Locations Tree.
Build
contextual menu accessible from a project
entity contains the same entries.
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 (Helpers->Execute command).
Similarly, the Run
contextual menu accessible from a project
entity contains the same entries.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |