Hello again, On Mon, Jul 4, 2016 at 4:29 PM, Robert Osfield <[email protected]> wrote:
> Weird. I have just had a look t the source file the compiler is > complaining about and it looks pretty standard. > > The gles plugin on Linux is not particularly large either. I can't see > any obvious reasons why there would be any need for some special > options. > > This is what the doc says about /bigobj: https://msdn.microsoft.com/en-us/library/ms173499.aspx My suspicion is that as that optimizer code works over all possible OSG nodes, it is possible it is trying to instantiate ton of templates (e.g. osg::ref_ptr<>), pushing the number of sections over 64k in my particular case, with my set of self-compiled dependencies. It seems that adding /bigobj should be safe, only compilers older than MSVC 2005 wouldn't be able to deal with such object files - which is a non-issue, because one cannot really mix C++ object files/libs between MSVC versions safely anyway. J.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

