I have a cpp file that contains a huge array.
I get a fatal error (exceeded object file format limit) and the suggestion to compile with the flag /bigobj
Where do I set this flag in visual studio?
I have a cpp file that contains a huge array.
I get a fatal error (exceeded object file format limit) and the suggestion to compile with the flag /bigobj
Where do I set this flag in visual studio?
On the Command Line property page as described here.
According to MSDN and /bigobj (Increase Number of Sections in .Obj file):
To set this compiler option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
- Click the C/C++ folder.
- Click the Command Line property page.
- Type the compiler option in the Additional Options box.