Building a Multimodule Program

Now that the project files are complete, you can build the program in the same way you built the single-module program.

·To build a multimodule program:

1.You are starting on a new project, so you will want to use debug options for the initial builds. Turn on the Use Debug Options option button in the Build Options dialog box, as you did in “Setting Build Options”.

2.From the Project menu, choose Build.

PWB displays a dialog box to inform you that build information has changed because you altered the build options.

3.Choose Yes to rebuild your entire project.

As the program is built, PWB shows status messages about the progress of the build. When the build completes, a dialog box displays a summary of any errors encountered during the build process.

Note :

The Next Error command on the Project menu works the same for a multimodule build as for a single-module build. Because errors in a multimodule build can occur in different files, PWB automatically switches to the file that contains the error.

In some cases, you will want to force a complete rebuild of your project by choosing Rebuild All from the Project menu. The difference between Build and Rebuild All is that Build compiles and links only out-of-date targets and Rebuild All compiles all targets, regardless of whether they are current.