Hi all, I've got some strange error while trying to compile example file in the directory Tutorials.
I've successfully added two New Folders with two Materials into the OpenSG project after the following steps: 1) put New Folder into the Source/Experimental, 2) Remove from the all includes 'OpenSG/', 3) add and correct files common.libs.in, common.mk, 4) Call configure in the main OpenSG folder 5) Call make in the Builds/i686-... 6) Call make in the NewFolderLib 7) Call make in the NewFolderTest 8) Call make install in the main OpenSG folder and my test program succesfully works in /Builds/i686-pc-linux-gnu-g++/NewFolderTest But when I tried to compile it in the Tutorials folder (of course I put #include<OpenSG/> for all includes) I got the following error message: /tmp/ccz7j988.o(.gnu.linkonce.t._ZN3osg21LafortuneMaterialBase12getClassTypeEv+0x4): In function `osg::LafortuneMaterialBase::getClassType()': /HPS/fopra/polina/Soft/OpenSG/Tutorials/testLafortune.cpp:83: undefined reference to `osg::LafortuneMaterialBase::_type' /tmp/ccz7j988.o(.gnu.linkonce.t._ZN3osg5FCPtrINS0_INS0_INS_22AttachmentContainerPtrENS_8MaterialEEENS_13ChunkMaterialEEENS_17LafortuneMaterialEE5dcastINS_17FieldContainerPtrEEES7_T_+0x4e): In function `osg::FCPtr<osg::FCPtr<osg::FCPtr<osg::AttachmentContainerPtr, osg::Material>, osg::ChunkMaterial>, osg::LafortuneMaterial> osg::FCPtr<osg::FCPtr<osg::FCPtr<osg::AttachmentContainerPtr, osg::Material>, osg::ChunkMaterial>, osg::LafortuneMaterial>::dcast<osg::FieldContainerPtr>(osg::FieldContainerPtr)': /HPS/fopra/polina/Soft/OpenSG/Tutorials/testLafortune.cpp:89: undefined reference to `typeinfo for osg::LafortuneMaterial' collect2: ld returned 1 exit status make: *** [testLafortune] Error 1 Could somebody say me what is the error and how to remove it? (I already tried to reinstall OpenSG and create Material several times, but error is still there.) Thanks, Polina. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
