I tried to compile the example programs under .net as well. The cube example had the same problem as well as several others but there was no native build for .net so I tried building the mfc example which worked perfectly. So, I tracked down the error to a constructor problem. It seems if I declare:
NodePtr *scene; or NodePtr scene(NullFieldContainerPtr);
the program links as it should.
If I declare NodePtr scene;, the link error occurs. So, while it seems I have fixed the problem in a temporary sense, the problem remains that InvalidParentEPos is not being found by the void constructor. It's possible this is how this constructor is supposed to work, but I doubt it. I'd still like to track down the actual problem (if it is a problem) so any help/advice would be appreciated. Thanks!
 Matt

Andreas Zieringer a écrit :
Hi Matt,

what happens if you compile one of the tutorial projects?

Andreas

Hi, I am trying to create a simple model viewer application (with almost no functionality currently) in .net 2005 (debug version). Everything works until I add the following declaration: NodePtr scene; to the project, I get the following link errors:

1>Linking...
1>main.obj : error LNK2001: unresolved external symbol "public: static unsigned short const osg::FieldContainerPtrBase::InvalidParentEPos" ([EMAIL PROTECTED]@osg@@2GB) 1>\\samba-serv\mkaplan\research\NPRlib\Apps\NPRlib-Explorer\Build\msvc.net-2005\NPRlib-Explorer\Debug\NPRlib-Explorer.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://\\samba-serv\mkaplan\research\NPRlib\Apps\NPRlib-Explorer\Build\msvc.net-2005\NPRlib-Explorer\Debug\BuildLog.htm"
1>NPRlib-Explorer - 2 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I have seen similar linking problems on the forum but nothing that applies directly. I have tried compiling against both the distributed binaries and a local build from source. Any help would be appreciated. Thanks!
  Matt





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to