On Wed, Oct 16, 2013 at 12:48 PM, Sajjadul Islam <dosto.wa...@gmail.com> wrote: > Hi Forum, > > I think this is one of the most common linking error you usually get, but i > could not find the reason behind it. > > > Code: > > Linking CXX executable ../../../bin/osgOpenCLEndiannessDemod > ../../../lib/libosgOpenCLd.so: undefined reference to `typeinfo for > osgViewer::GraphicsWindowX11' > collect2: ld returned 1 exit status > make[2]: *** [bin/osgOpenCLEndiannessDemod] Error 1 > make[1]: *** > [examples/osgOpenCLEndiannessDemo/src/CMakeFiles/example_osgOpenCLEndiannessDemo.dir/all] > Error 2 > make: *** [all] Error 2 >
Are you using -fno-rtti switch somewhere by chance? typeinfo is part of the C++ RTTI system and if you have disabled it, you will get this error. Another option is that you are invoking the linker incorrectly, but it seems that the makefile was generated by CMake, so that is not very likely. J. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org