Hi Chris, As far as I know, USE_OSGPLUGIN only calls a C-styled function through a static proxy variable, which is defined by REGISTER_OSGPLUGIN in the plugin source code body. So compiler can thus find and register the plugin while static linking. It should do no harm to user applications no matter dynamic/static linked.
Wang Rui 2014-03-09 0:14 GMT+08:00 Chris Hanson <xe...@alphapixel.com>: > I think what Paul was asking is, if you build and install OSG, is there > any state retained anywhere (in a #define in a config.h or something) that > indicates _if_ OSG itself WAS built with OSG_STATIC, and therefore if the > application needs to configure its own #if blocks to automatically > instantiate the USE_OSGPLUGIN code. > > And the secondary question is -- is there any harm in having USE-OSGPLUGIN > blocks in an application that is using OSG dynamically linked? > > I tried to answer the question, but discovered that I don't actually know > these answers. > > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org