I forgot to tell I use version 1.8.0 (stable release).
I tried using the VS 2003 and 2005 versions; both generate thesame error.
This functionality is pretty basic isn't it?
So there must be people that know what I'm doing wrong here :(
----- Original Message -----
From: Wouter Wognum
To: [email protected]
Sent: Saturday, November 17, 2007 5:48 PM
Subject: [Opensg-users] Using fcdEdit to create a new fieldcontainer
resultsin error LNK2019
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
__________ NOD32 2665 (20071117) 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/
__________ NOD32 2665 (20071117) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
__________ NOD32 2665 (20071117) 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