PWB Does Not Automatically Update Include Dependencies

ID: Q84955

1.00 1.10 2.00 2.10.49 | 1.00 1.10

MS-DOS                 | OS/2
kbtool

The information in this article applies to:

SUMMARY

The Programmer's WorkBench (PWB) versions 1.0, 1.1, and 2.0 do not automatically update the include dependencies if include statements are added to source code after a program list/project has been saved. The include dependencies are updated when the list is saved again. This is also documented on pages 47-48 of the "Microsoft C/C++ Environment and Tools" manual for version 7.0.

MORE INFORMATION

When a project is created, the include dependencies are added to the target dependency blocks. This is done by scanning the source code for

#include statements. These statements can occur in source files (such
as .C files), header files (.H files), and resource scripts (.RC files).

If #include statements are subsequently added to files in the program list, they are not added to the makefile as dependencies until the program list is edited and saved. No actual changes to the list are required. Saving the list causes the include dependencies to be re-evaluated. To summarize, use the following procedure to update the include dependencies:

In PWB Versions 1.x

1. Select Make from the main PWB menu.

2. From the Make menu, choose Edit Program List.

3. Choose Save List.

In PWB version 2.0

1. Select Project from the main PWB menu.

2. From the Project menu, choose Edit Project.

3. Choose Save Project.

Additional reference words: kbinf 1.00 1.10 2.00 7.00 2.1.49 PWBIss KBCategory: kbtool KBSubcategory: PWBIss Keywords : kb16bitonly

Last Reviewed: July 18, 1997