Hi Ulrich, I've seen reports of this type of problem before - definition of static values in headers, can't remember the exact times but its happened a couple of time in osg history. Fixes would be to move the definition into the .cpp, to change to using #define or to use an enum. I'll have a bash with converting it to an enum.
Robert. On Fri, Mar 14, 2008 at 10:43 AM, Ulrich Hertlein <[EMAIL PROTECTED]> wrote: > I'm getting a build error for r7942 in osgPlugins/osgSim on MacOS X: > > [ 41%] Built target osgdb_osgparticle > Linking CXX shared module ../../../lib/osgPlugins-2.3.5/osgdb_osgsim.so > /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: > osgSim::ObjectRecordData::FLAT_SHADED > osgSim::ObjectRecordData::DONT_ILLUMINATE > osgSim::ObjectRecordData::DONT_DISPLAY_AT_DUSK > osgSim::ObjectRecordData::GROUPS_SHADOW_OBJECT > osgSim::ObjectRecordData::DONT_DISPLAY_AT_NIGHT > osgSim::ObjectRecordData::DONT_DISPLAY_IN_DAYLIGHT > collect2: ld returned 1 exit status > make[2]: *** [lib/osgPlugins-2.3.5/osgdb_osgsim.so] Error 1 > make[1]: *** [src/osgPlugins/osgSim/CMakeFiles/osgdb_osgsim.dir/all] Error 2 > make: *** [all] Error 2 > > The values are declared e.g. 'static const unsigned int FLAT_SHADED = ...' in > include/osgSim/ObjectRecordData so that should be just fine, no need to link > anything for those symbols. > > From the verbose output I can't see anything obvious missing so I'm a bit > baffled by this at the moment. > > Cheers, > /ulrich > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org