Edit

Share via


Linker Tools Error LNK1140

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

Remarks

The project exceeds the maximum number of modules allowed in a program database (PDB) file. This limit was originally 4,096 modules and was later increased to 65,533.

This error can also occur when other PDB size limits are exceeded, such as too many symbols or an excessive number of types.

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.
  4. Split your project into multiple smaller libraries or DLLs.