Microsoft KB Archive/71311

PR: Unresolved Externals Building Windows Apps with PWB ID Number: Q71311

3.00 WINDOWS

Summary:

SYMPTOM While building a Windows application with the Programmer’s WorkBench (PWB), the Windows libraries are not found and an unresolved externals error is reported by the linker.

CAUSE The PWB environment is not configured properly. PWB does not use DOS environment variables. Instead, PWB refers to the CURRENT.STS file that contains its environment.

RESOLUTION To correct the problem, delete the CURRENT.STS file. PWB will then look at the DOS environment variables to determine the compiling environment. If the DOS environment variables are set properly (see “Proper Environment Settings” below), PWB should be able to find the correct libraries when compiling.

Another solution is to use PWB commands to modify the environment so that it is correct for compiling Windows applications. To do this, choose Options Environment from the PWB menu and set the environment variables appropriately (see “Proper Environment Settings” below).

More Information:

To verify the current PWB environment settings, choose Options Environment from the PWB menu. For more information on the CURRENT.STS file and the programming environment, please query on the following words:

prod(pwb) and current.sts

For more information on using PWB with Windows, read the PWBINFO.WRI file included with the Windows Software Development Kit (SDK).

Proper Environment Settings
The PWB environment must include the directories into which the Windows SDK was installed. Assuming that the SDK was installed on drive C into its default directory (C:), these items should be added to the environment variables:


 * Make C:the first directory in the INCLUDE variable.
 * Make C:the first directory in the LIB variable.
 * Put C:into the PATH variable.