Article ID: 146866 - View products that this article applies to.
This article was previously published under Q146866
This article has been archived. It is offered "as is" and will no longer be updated.
When linking a debug version of your application, you may get the following warning message:
NOTE: You will not be able to see the subsequent types in the debugger.
LINK : warning LNK4018: too many type indexes in PDB "filename", discarding subsequent type information
The number of type indexes in the Program Database File (.pdb file) for your project exceeded 64K for Visual C++ 4.x and 16M for later versions. This is a limitation of the debugging format in a .pdb file. The format uses a 16-bit field to store the number of types. This field was increased to 24 bits in Visual C++ 5.0.
To avoid this warning, use one or more of the following methods to decrease the number of type indexes in your .pdb file:
You can review each object module to determine how many symbols it contains by using dumpbin /headers <file>.obj. The first section in the output tells how many symbols the object module contains.
With the introduction of Visual C++ 4.0, the size of the MFC libraries increased significantly and debugging information for the C run-time (CRT) libraries is now included in debug builds. These changes will increase the total number of type indexes in your project's .pdb file from earlier versions of Visual C++.
Article ID: 146866 - Last Review: February 24, 2014 - Revision: 4.0
Contact us for more help
Connect with Answer Desk for expert help.