Using SoftBench

Defining Targets for Project Build

Customizing Build Configurations

A build configuration specifies how to convert your source files into your targets. Build configurations may include packages as a shorthand notation for a common transform and its associated options or for common libraries.

To create or modify build configurations:

1.Choose "Builder: Manage Build Configurations…" which displays the dialog box shown in Figure 2-8.

Figure 2-8 "Manage Build Configuration" Dialog Box

2.Select the build configuration from the "Build Configuration" drop-down list.

3.Modify the build configuration by expanding the sections of the dialog box and making the changes.

For example, if you need to add the math library to the build configuration:

a.Expand the "Specify Library and Linker Options" section.

b.Select the Add… button for adding libraries.

c.Enter "m" in the input box, and select OK to close the "Add -l Libraries" dialog box.

In the "Manage Build Configuration" dialog box, the

"Libraries (-l) to Use" list now contains "-lm" for the math library.

62

Chapter 2