You receive a "fatal error LNK1104" error message when you link a VXD with the /MAP switch in Visual C++ (195377)



The information in this article applies to:

  • The Linker (LINK.EXE), when used with:
    • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
    • Microsoft Visual C++, 32-bit Professional Edition 6.0
    • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q195377

SYMPTOMS

When you link a VXD (/VXD switch) with the /MAP switch to generate a map file in Microsoft Visual C++, you may receive the following error message:
LINK : fatal error LNK1104: cannot open file "<filename>.map"

RESOLUTION

There is no workaround for this problem. You must either not generate a map file for the VXD, or build the VXD using the linker supplied with the DDK.

The Visual C++ linker as shipped in the retail product does not support the generation of VxDs.

To generate VxDs, a developer must use the Windows 9x or Windows NT DDK build environment, which includes a linker that will generate VxDs.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:

194022 Visual Studio 6.0 service packs, what, where, why

194295 How to tell that a Visual Studio service pack is installed


Modification Type:MajorLast Reviewed:5/31/2005
Keywords:kbBug kbfix kbVS600sp3fix KB195377