[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Compiling Files

You can instruct CodeWarrior to compile a single file or to compile only certain files in your project. Of course, CodeWarrior can also compile all of the files in your project.

You might want to switch between multiple build targets in a project when compiling files. To learn more, refer to "Setting the Current Build Target."

The Compile command in the Project Menu is grayed out in the following situations:

As CodeWarrior compiles source-code files and libraries in the open project, it highlights them in the Project window. The Build Progress window (Figure 10.1) displays a line count and the name of the file being compiled.

A status line displaying the total number of files to be compiled and the number of files being compiled is also provided at the bottom of the Project window.

Build Progress window:

Compiling One File

To compile a single file in your project, select that file in the Project window and choose Compile from the Project Menu.

Alternatively, you can open the file in the CodeWarrior editor, make the editor window the active window, and choose Compile from the Project Menu.


Compiling Selected Files

You can compile several files in your project by selecting those files in the Project window and then choosing Compile from the Project Menu. To learn how to select several files in your project, refer to "Selecting Files and Groups."


Recompiling Files

CodeWarrior does not always recognize file changes and might not automatically recompile the file. You can force CodeWarrior to recompile a changed file by "touching" that file. To learn how to touch a file, refer to "Touching and Untouching Files."

After touching the file or files that you want to recompile, choose Bring Up To Date or Make from the Project Menu.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000