/bigobj (Increase Number of Sections in .obj file)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

/bigobj (Increase Number of Sections in .obj file)

/bigobj increases the number of sections that an object file can contain.


By default, an object file can hold up to 65,536 (2^16) addressable sections. /bigobj increases that address capacity to 4,294,967,296 (2^32).

Most modules will never generate an .obj file that contains more than 65,536 sections. However, machine generated code, or code that makes heavy use of template libraries may require .obj files that can hold more sections.

An .obj file produced with /bigobj can only be consumed by a linker that shipped in Visual C++ 2005 (or later). Linkers that shipped prior to Visual C++ 2005 cannot read .obj files that were produced with /bigobj.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Click the C/C++ folder.

  3. Click the Command Line property page.

  4. Type the compiler option in the Additional Options box.

To set this compiler option programmatically

© 2015 Microsoft