[osg-users] Compilation error with MSVC 2015

Jan Ciger jan.ciger at gmail.com
Mon Jul 4 09:12:33 PDT 2016


Hello again,

On Mon, Jul 4, 2016 at 4:29 PM, Robert Osfield <robert.osfield at gmail.com>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160704/fe9ef79f/attachment-0003.htm>


More information about the osg-users mailing list