Hi John,

I'd guess at an issue of mixing libs and gcc versions.  Try removing
all the .o and lib and bin directories from your OpenSceneGraph build,
also remove the CMakeCache.txt and then try again.

FYI, 2.8.3 really isn't much different to 2.9.x w.r.t how it's built
and the Viewer::setSceneData(..) method hasn't been touch pretty well
for the whole history of the osgViewer library so certainly won't be
the cause of the error.

Robert.

On Mon, Dec 13, 2010 at 9:36 PM, John Kelso <[email protected]> wrote:
> Hi,
>
> When I try to link my executables using osg-2.9.9 or osg-2.9.10 I get
> messages
> like:
>
> libiris.so: undefined reference to `non-virtual thunk to
> osgViewer::Viewer::setSceneData(osg::Node*)'
>
> I'm using CentOS and gcc 4.1.2.
>
> I googled a bit and found this problem mentioned when using one optimization
> level for a building a library and a different optimization level when
> compiling programs that link with the library.
>
> The executable, and the programs comprising libiris.so, are compiled with
> whatever's the default optimization.  I built osg-2.9.9 and osg-2.9.10 just
> before building libiris.so, so I'm using the same compiler, system libraries
> and so forth.  I don't get this error on a freshly rebuilt osg-2.8.3.
>
> I also didn't specify any optimization level when building OSG.
>
> osgviewer builds and runs.
>
> Any ideas about how to start tracking this problem down?
>
> More gory details on request.
>
> Many thanks,
>
> John
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to