Hi Torben, REGISTER_OBJECT_WRAPPER actually register the wrapper to the Registry instance. It works similar to REGISTER_OSGPLUGIN. So just code as if you are working on plugins.
Wang Rui 2010/2/13 Torben Dannhauer <[email protected]>: > Hi, > > I have testes serializer in my class, but im unable to link it. Linker always > complain: > > Code: > > Fehler 2 error LNK2005: "void __cdecl > wrapper_propfunc_dataIO_slotDefinition(class osgDB::ObjectWrapper *)" > (?wrapper_propfunc_dataIO_slotDefinition@@yaxpavobjectwrap...@osgdb@@@Z) ist > bereits in dataIO_clusterDummy.obj definiert. dataIO_extLinkVCL.obj > > > > > I have added my wrapper definition in the same file direct below my class > definition. > > The headerfile is protected with #pragma once, but every time this file is > included in another file, the linker complains afterwards with the error > above. > > My assumption is, that the REGISTER_OBJECT_WRAPPER is processed every time by > the Preprocessor. > > Have anyone an idea why? > > thank you very much, > > Torben > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=24101#24101 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

