FIX: Link.exe crashes with a fatal LNK1000 error when you use /WHOLEARCHIVE switch

Applies to: Visual Studio 2015 Update 3

Symptoms


If you use the /WHOLEARCHIVE switch together with Link.exe in Microsoft Visual Studio 2015, you receive an error message that resembles the following:
LINK : fatal error LNK1000: unknown error at 000000013FA24241; consult documentation for technical support options

Cause


This problem occurs in rare cases because Link.exe might not handle import objects and incremental linking correctly if it uses the /WHOLEARCHIVE switch.

Resolution


How to obtain this hotfix

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

Download Download the hotfix package now.

For more 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 prevent any unauthorized changes to the file.
 

Prerequisites

To apply this hotfix, you must have Visual Studio 2015 Update 3 installed. 
 

Restart requirement

You may have to restart the computer after you apply this hotfix if no instance of Visual Studio is being used.
 

Hotfix replacement information

This hotfix doesn't replace other hotfixes. 

More information


For more information about the /WHOLEARCHIVE switch, see /WHOLEARCHIVE (Include All Library Object Files).

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.