[osg-users] 'fatal error C1128: number of sections exceeded object file format limit' under MSVC2015

Robert Osfield robert.osfield at gmail.com
Thu Apr 19 12:14:32 PDT 2018

Hi Jason,

On 18 April 2018 at 20:59, Jason Beverage <jasonbeverage at gmail.com> wrote:
> I'm compiling the master in debug with MSVC 2015 and running into this issue
> again:
> http://forum.openscenegraph.org/viewtopic.php?t=16012&start=0&postdays=0&postorder=asc&highlight=
> This time it's with Geode.obj
> I've added /bigobj just to get it building here locally.  Not sure if there
> is anything else we can take out of the headers to slim it down or not.
> This is my first time seeing this issue so I'm not 100% sure if it's a good
> idea to just enable /bigobj all the time or not.

I don't have any VisualStudio expertise so have to defer to Windows
devs as how best to guide the build with VisualStudio.  So if you feel
adding /bigobj is required then submit a PR to add this.

What are the cons about enabling /bigobj?


More information about the osg-users mailing list