Compile files

Most programming languages allow you to compile an individual source file. It reads the file, checks for errors and convert into an intermediate object file. Most errors happens in this step, so it is useful to compile a file after modifying it to check for errors. There are several ways to do it.

  1. From the main menu, select Build ▸ Compile or press F9 to compile the current edited file.

  1. From the file manager pane, select a file.

  2. Click on the right mouse button to make the file manager context menu appears and select Build ▸ Compile to compile the file currently selected in the file manager pane.

  1. From the project manager pane, select a source file.

  2. Click on the right mouse button to make the project manager context menu appears and select Build ▸ Compile to compile the file currently selected in the project manager pane.

You do not need to save your file before compiling it, it will be done automatically by Anjuta if needed.