PWBC Library Switches

Type

Text

The PWBC library switches specify whether specific libraries have been installed and, if installed, whether they have default or explicit names.

The setting for this switch appears in the [PWB-PWBC] tagged section in TOOLS.INI. To set any PWBC switch, choose PWBC from the Switch Owner box in the Editor Settings dialog box.

Switch Libraries

Doslibs MS-DOS libraries
Winlibs Windows libraries
Windlllibs Windows DLL libraries
Os2libs OS/2 libraries
Dlllibs OS/2 DLL libraries
Mtlibs OS/2 multithread libraries

The library switches allow PWB to specify the appropriate library name at link time.

You should set the switch according to the naming convention you selected when setting up. The SETUP program allows you to select one of the following formats for library names:

Default names of the form xLIBCy.LIB, where x specifies the memory model (S for small, M for medium, C for compact, or L for large) and y specifies the floating-point math package (E for emulator, 7 for 8087, or A for alternate math). The default name for a dynamic-link library (DLL) is xDLLCy.LIB, where y is either E or A. The default Windows DLL library names have the form xDLLCyW.LIB. The default QuickWin library names have the form xLIBCyWQ.LIB.

Explicit names of the form xLIBCyo.LIB, where x specifies the memory model, y specifies the floating-point math package, and o indicates that the library is for a specific operating-mode: R for MS-DOS and W for Windows.

SETUP places the correct settings for these switches in the [PWB-PWBC] section of the TOOLS.PRE file.

Syntax

switch: {none|default|explicit}

switch

One of the switch names listed in the preceding table.

none

Specifies that the library is not installed. PWB asks you to choose between default and explicit names when you select a project template that requires the library.

default

Specifies that the library has the default name. Note that this setting is not recommended for the Windows DLL libraries (xDLLcyW.LIB), OS/2 DLL library (LLIBCDLL.LIB), or OS/2 multithread library (LLIBCMT.LIB). Use explicit names for these libraries.

explicit

Specifies that the library has the explicit (fully qualified) name.

Default

switch: explicit

If the switch is not present in TOOLS.INI, the PWBC extension assumes default names for all libraries.