Hi Robert,
I'm building VPB from svn trunk to do a bit of terrain generation, and I
got a suspicious compile warning and some linker errors:
Warning:
1>..\..\..\src\vpb\BuildOptionsIO.cpp(202) : warning C4005:
'ADD_ENUM_VALUE' : macro redefinition
1>
C:\Dev\OpenSceneGraph-SVN\OpenSceneGraph\include\osgDB/Serializer(845) :
see previous definition of 'ADD_ENUM_VALUE'
osgDB/Serializer defines ADD_ENUM_VALUE thus:
#define ADD_ENUM_VALUE(VALUE) \
serializer->add(#VALUE, MyClass::VALUE)
and vpb/BuildOptionsIO.cpp defines it thus:
#define ADD_ENUM_VALUE(VALUE) \
serializer->add(BuildOptions::VALUE, #VALUE)
--> Should the VPB defines be prefixed with VPB_ so they can't clash
with OSG defines perhaps?
Linker errors:
1>BuildOptionsIO.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
osgDB::TemplateRegisterDotOsgWrapperProxy<class
BuildOptionsLookUps>::TemplateRegisterDotOsgWrapperProxy<class
BuildOptionsLookUps>(class osg::Object *,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,bool
(__cdecl*)(class osg::Object &,class osgDB::Input &),bool
(__cdecl*)(class osg::Object const &,class osgDB::Output &),enum
osgDB::DotOsgWrapper::ReadWriteMode)"
(__imp_??0?$templateregisterdotosgwrapperpr...@vbuildoptionslookups@@@osgDB@@q...@pavobject@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@1p6a_naa...@aavinput@1@@zp6a_nab...@aavoutput@1@@zw4readwritem...@dotosgwrapper@1@@Z)
referenced in function "void __cdecl `dynamic initializer for
'BuildOptions_Proxy''(void)" (??__EBuildOptions_Proxy@@YAXXZ)
1>BuildOptionsIO.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
osgDB::TemplateRegisterDotOsgWrapperProxy<class
BuildOptionsLookUps>::~TemplateRegisterDotOsgWrapperProxy<class
BuildOptionsLookUps>(void)"
(__imp_??1?$templateregisterdotosgwrapperpr...@vbuildoptionslookups@@@osgDB@@q...@xz)
referenced in function "void __cdecl `dynamic atexit destructor for
'BuildOptions_Proxy''(void)" (??__FBuildOptions_Proxy@@YAXXZ)
Not too sure what to do to fix this. Perhaps this is related to the work
on the new .osg plugin?
Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org