[adding opensg-users back to CC] Hello Thomas,
On 07/06/2011 06:01 AM, Henn, Thomas wrote: > attached you will find two zip files. > > test.zip includes my test.cpp (which is mainly 01hello.cpp plus the test code > where I try to create some geo properties), the two log files and finally a > recording of my test session including compiler settings and program output. > If test.cpp is compiled with hidden visibility, creating the geo properties > fails. But if test.cpp is compiled with default visibility, everything works > fine... thanks for sending these. The logs indeed are very similar and seem to suggest that type registration works fine - strange... > OpenSG.zip includes all changes I made in order to compile OpenSG itself with > -fvisisbility=hidden. But any attempt to link the test program with the > modified OpenSG libs ends in a lot of undefined references. hmm, the errors you are getting seem to be of the forms: 1) undefined reference to `typeinfo for osg::GeoPropertyArrayInterface' this might simply be because this type is not annotated with OSG_SYSTEMLIB_DLLMAPPING (similar for other types in GeoPropertyInterface.h) - perhaps also the reason GeoProperties don't work for you? 2a) undefined reference to `osg::MField<osg::Point<short, 3u>, 0>::_fieldType' these could be because the MField<> template itself is not marked OSG_BASE_DLLMAPPING [1] nor is the static _fieldType member instantiation in Source/Base/Field/OSGTypeInst.cpp 2b) undefined reference to `osg::GeoProperty<osg::GeoPLengthsUI32PropertyDesc>::_type' and similar here, the templates are not marked for dllimport/dllexport and neither are the static member instantiations. Cheers, Carsten [1] templates are in general not marked for dllimport/dllexport, mostly because it is not necessary for that mechanism and so does not produce linker errors ;) - visibility seems to have slightly different rules for this case though ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users