How to Make a Library File a Dependent of the Target in PWBLast reviewed: July 17, 1997Article ID: Q69751 |
1.00 1.10 | 1.00 1.10
MS-DOS | OS/2kbtool The information in this article applies to:
SUMMARYIn the Programmer's WorkBench (PWB), additional libraries may be specified in a Program List. However, these libraries are not put into the makefile as dependents of the target file. Thus, if one of these libraries is changed, this does not cause the project to be rebuilt unless you delete the existing target file or select Rebuild All to rebuild the entire project. To make a project automatically relink after an external library has been modified, you need to modify two build switches. This can be done permanently in the TOOLS.INI file or temporarily inside PWB in the Editor Settings (which can be reached from the Options menu). Then you must place the library(s) in the project's program list (as opposed to the Additional Libraries list in the Link Options dialog box).
MORE INFORMATIONThe following information describes the two methods for making the build-switch changes that are required to have libraries recognized as dependents of the target file in a project. For those who would like more extensive information on modifying and creating build switches, an application note is available from Microsoft on this subject. For details, query on the keyword "SW0330". You can verify the results of either of these build-switch changes by looking at the PWB-generated makefile and observing that external libraries are, in fact, listed as dependents of the project target.
Making Permanent Build Switch Modifications in TOOLS.INI
Making Temporary Build Switch Modifications in the Editor Settings
|
Additional reference words: kbinf 1.00 1.10 PWBIss
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |