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) referenced in function "public: static class 
osg::FieldContainerType & __cdecl osg::MyNodeBase::getClassType(void)" ([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


<<attachment: node.gif>>

-------------------------------------------------------------------------
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