HI Chris,
On 11/22/06, Chris Hanson <[EMAIL PROTECTED]> wrote:
That's what I suggested. A do-nothing C-linkage function with a name unique
to that
plugin could be called from main() to ensure linkage of the object module
without the
craziness.
For portability, this function would need to exist and be built under all
platforms,
not just Windows.
Robert, would you be ok with us inserting this sort of minor ugliness to
overcome the
kludgy method we are forced to use now? I can't think of a better way at the
moment.
Currently all the plugins use a Proxy object to register themselves
with osgDB::Registry. Perhaps this line could be replaced by a macro,
with macro doing the C function declaration/implementation and the
proxy construction.
This would make it possible to move all the plugins over without too
much difficulty. I agree with making this completely standard across
platforms, not only windows need to static link.
If you try out an implementation of the above that works for you send
it along to me.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/