I think that my current fcdEdit program is outdated. The lines 308-309 in the OSGDeformGeometryBase.cpp don't exist... it has less than 300.
Anyway I solved it changing the DeformGeometryPtr field by a NodePtr and in the code, getting the core and casting it to the DeformGeometry.
Thanks again,
On 10/27/05, Christoph Fuenfzig <[EMAIL PROTECTED]> wrote:
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]>
--
Aitor Moreno
[EMAIL PROTECTED]
