Hello Daniel,

On 11/04/2011 09:54 AM, Daniel Weber wrote:
> I try to generate a custom node core with a GeoVectorProperty field. I 
> followed the tutorial "Creating a new container type" and used fcd2code. When 
> compiling the lib or the unified app version, I get strange compiler errors:
> error C2664: 
> 'OSG::PointerSFieldCommon<AccessHandlerT,NamespaceI>::ptrStoreSet' : cannot 
> convert parameter 1 from 'OSG::GeoVectorProperty *const ' to 
> 'OSG::PointerSFieldCommon<AccessHandlerT,NamespaceI>::const_value'
> 1>         with
> 1>         [
> 1>             
> AccessHandlerT=OSG::ChildAccessHandler<OSG::UnrecordedRefCountPolicy>,
> 1>             NamespaceI=1
> 1>         ]
> 1>         Types pointed to are unrelated; conversion requires 
> reinterpret_cast, C-style cast or function-style cast
>
> As the error is deep down in the template magic of OpenSG, I tried to narrow 
> down the source of the problem by modifying the particles core (see attached 
> OSGParticles.fcd) with only one field of type GeoVectorProperty. Using the 
> generated sources again results in the same compiler errors. Any ideas?

just a quick check: do you include OSGGeoVectorProperty.h in your 
OSGSomething.h?
I haven't checked in detail, but the errors you are seeing look like the 
kind you get if that include is missing.

        Cheers,
                Carsten

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to