Linker Tools Error LNK1140

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Linker Tools Error LNK1140.

too many modules for program database; link with /PDB:NONE

The project contains more than 4096 modules.

To fix by using the following possible solutions

  1. Relink using /PDB:NONE.

  2. Compile some modules without debugging information.

  3. Reduce the number of modules.

Show: