Microsoft KB Archive/818344

= Build Errors with Windows Server 2003 DDK =

PSS ID Number: 818344

Article Last Modified on 6/10/2003

-

The information in this article applies to:


 * Microsoft Windows Server 2003 Driver Development Kit (DDK)

-



SUMMARY
When you try to build debug binaries by using the Windows Server 2003 Driver Development Kit (DDK) that links to the static C++ runtime libraries (for example, Libcp.lib, Libcpd.lib, Libcpmt.lib, or Libcpmtd.lib), the linker issues warning LNK4099.

This article provides the download file, Libcp_pdb.zip, which includes the .pdb files for all architectures (that is, for amd64, i386, and ia64), and demonstrates how to update the DDK with the .pdb files.



Symptoms
The warning LNK4099 that users receive appears similar to the following:



By default, the DDK sets the linker warning level to /Wx. As a result, this warning is treated as an error. However, the DDK retail product does not include the Libc*.pdb files that belong with the libraries.

Versions Affected
This problem affects all build environments of the released version of Windows Server 2003 DDK. It does not affect earlier versions of the build environments.

The following file is available for download from the Microsoft Download Center:

Download the Libcp_pdb.zip package now. Release Date: June 9, 2003

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

The download contains three folders for three architectures, and each folder contains four .pdb files:

The download also contains the following files:



RESOLUTION
Assuming that the files in the download are extracted to the C:\Download folder, and that the DDK is installed in the C:\WinDDK\3790 folder, the following set of copy commands will correctly update the DDK:

Note &quot;REM&quot; is for comments in a batch job file.
 * REM Update the Windows Server 2003 environments
 * copy C:\Download\i386\* C:\WinDDK\3790\lib\wnet\i386\
 * copy C:\Download\ia64\* C:\WinDDK\3790\lib\wnet\ia64\
 * copy C:\Download\amd64\* C:\WinDDK\3790\lib\wnet\amd64\
 * REM Update the Windows XP environments
 * copy C:\Download\i386\* C:\WinDDK\3790\lib\wxp\i386\
 * copy C:\Download\ia64\* C:\WinDDK\3790\lib\wxp\ia64\
 * REM Update the Windows 2000 environments
 * copy C:\Download\i386\* C:\WinDDK\3790\lib\w2k\i386\

Alternatively, if you do not want to download the file, add the following line before the inclusion of Makefile.def in your makefile: BUILD_ALLOW_LINKER_WARNINGS=1

Additional query words: LNK4099

Keywords: kbDownload kbDDK kbfile KB818344

Technology: kbAudDeveloper kbWinDDKSearch kbWinServ2003DDK kbWinServ2003Search

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.