Hi,

thanks for your reply.
I tried to use 'Attachment' as a parent in fcdEdit,
but I still get exactly thesame error message when I try to instantiate my 
new attachment class with:

myattachmentnamePtr x = myattachmentname::create();

So, is it even possible to make your own node/attachment types ?
Or am I misinterpreting the use of fcdEdit here?


Regards,

Wouter


----- Original Message ----- 
From: "Andreas Zieringer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 19, 2007 2:24 PM
Subject: Re: [Opensg-users] Using fcdEdit to create a new fieldcontainer 
results in error LNK2019


> Hi,
>
> you can't add additional fields to a node via fcdEdit. In your case I
> would create an Attachment and add this to the node via
> node->addAttachment()
> Just change the parent in the fcdEdit GUI from "Node" to "Attachment"
>
> Andreas
>
>> Hello,
>>
>> I'm trying to figure out how openSG works by creating a simple demo app.
>> For this app, I would like to add a fields to a node, to store some
>> additional info about the node.
>> I read that I should use fcdEdit to create my own fieldcontainer
>> classes, so I did.
>>
>> I tried the most simple form, without actually adding any fields yet
>> (see attachment).
>> I saved the code and basecode to my project and included OSGMyNode.h in
>> my app.
>>
>> Then, I placed the following line in my code:
>>
>> MyNodePtr x = MyNode::create();
>>
>> Just like I would do with a standard Node.
>>
>> However, when I try to compile (visual studio 8), I get the following 
>> error:
>>
>>
>>
>> Error 1 error LNK2019: unresolved external symbol "private: static class
>> osg::FieldContainerType osg::MyNodeBase::_type"
>> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A
>> <mailto:[EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A>) referenced in
>> function "public: static class osg::FieldContainerType & __cdecl
>> osg::MyNodeBase::getClassType(void)"
>> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@XZ
>> <mailto:[EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@XZ>) 
>> demo.obj
>>
>> Any ideas on how to solve this? I'm including the following libraries in
>> my project:
>>
>> MSVCPRT.lib
>> MSVCRT.lib
>> winmm.lib
>> wsock32.lib
>> OSGBase.lib
>> OSGSystem.lib
>> OSGWindowGLUT.lib
>> glut32.lib
>> glu32.lib
>> opengl32.lib
>> tif32.lib
>> libjpeg.lib
>>
>>
>>
>> Regards,
>>
>> Wouter Wognum
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Opensg-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>
> __________ NOD32 2667 (20071119) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to