Hi Aitor,
I just tried the FCD files you attached with an CVS OpenSG short before
version 1.6.
I just had to change line 69 of OSGJointTransformBase.h from
#include <OpenSG/OSGDeformGeometryFields.h> // WholeGeometry type
to
#include "OSGDeformGeometryFields.h" // WholeGeometry type
then it compiled and linked just fine (with VS 7.1/Win XP).
I compiled the generated sources with my viewer application.
The instantiation of SField<DeformGeometryPtr> is in
OSGDeformGeometryBase.cpp, lines 308-309 and should look like
OSG_DLLEXPORT_SFIELD_DEF1(DeformGeometryPtr, );
OSG_DLLEXPORT_MFIELD_DEF1(DeformGeometryPtr, );
Could you compare this with your source?
Hope it helps,
Christoph
Aitor Moreno wrote:
Hello everyone,
I have created a class extending Geometry (DeformGeometry) and
other extending Transform (JointTransform) using fcdEdit. One of the
fields of JointTransform is a DeformGeometryPtr. If I don't add this
field, the compilation is OK, but adding the field I obtain these errors:
/OSGJointTransformBase.obj : error LNK2001: unresolved external symbol
"public: virtual class osg::FieldType const & __thiscall
osg::SField<class osg::FCPtr<class osg::FCPtr<class osg::FCPtr<class
osg::FCPtr<class osg::FCPtr<class osg::AttachmentContainerPtr,class
osg::NodeCore>,class osg::Drawable>,class osg::MaterialDrawable>,class
osg::Geometry>,class osg::DeformGeometry>,0>::getType(void)const "
([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@$0A@@osg@@[EMAIL PROTECTED]
@XZ)/
/OSGJointTransformBase.obj : error LNK2019: unresolved external symbol
"public: static class osg::FieldType const & __cdecl osg::SField<class
osg::FCPtr<class osg::FCPtr<class osg::FCPtr<class osg::FCPtr<class
osg::FCPtr<class osg::AttachmentContainerPtr,class
osg::NodeCore>,class osg::Drawable>,class osg::MaterialDrawable>,class
osg::Geometry>,class osg::DeformGeometry>,0>::getClassType(void)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@@osg@@$0A@@osg@@[EMAIL PROTECTED]
@XZ) referenced in function _$E3/
Can anybody help me?
I attach the corresponding fcd files.
Thanks in advance.
--
Aitor Moreno
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users