Anjuta IDE Manual
<<< Previous |  | Next >>>

# Setting Compiler Options

You can customize the the way the compiler will compile your file or project. Remember, each project will have its own set of compiler settings. If the options are modified when there is no project open, the settings are saved separately and will be used when compiling and building single files only. These are all transparent to the user: `Anjuta` handles them automatically.

# Support for your program

You have have seen in the previous sections how to specify basic compile options (such as include and library paths, linker settings, and so on). This process can be cumbersome when you want to use some of the more standard or popular libraries — GTK and GNOME, for example. To enable easy implementation of these libraries and to avoid and inconsistencies, the developers of such libraries usually supply a configuration program (usually called *-config) along with their libraries.

Well, that's the theory. Now for the practical part. `Anjuta` will do the difficult parts for you, so you do not need to worry about the configuration programs for these libraries — just add the particular support to your project.

To add support for a library to your program:

1. Choose the menu item Settings->Compiler and Linker Settings … and click on the `Supports` tab in the Compiler Options dialog.

2. Select the supports for your program by double-clicking on them.

3. Double-clicking again on any selected supports will unselect them.

Figure 1. Supports dialog

This will automatically set all the include paths and the libraries necessary for the options chosen. There will be no need to set the include paths and libraries manually.

| Important
| Currently, `Anjuta` has only a few library support options — Glib, GTK, GNOME and Bonobo. Some of these are not yet fully supported.

| Remember
| Once basic library supports have been specified, there is no need to manually set the basic compiler options usually required for these libraries. Any other libraries may still need compiler settings to be changed.

<<< Previous | Home | Next >>>
Running and Testing |  | Include Paths