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

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

/bigobj

Remarks

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.

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

See Also

Reference

Compiler Options

Setting Compiler Options