0

我无法让 OSG/OpenThreads 在一个简单的示例应用程序中工作。这就是我的命令的样子:

g++ bAuto.o -o bAuto -lGL -lGLU -lstdc++ -losgSim -losgText -losgGA -losgParticle -losgDB -losgViewer -losgUtil -losg -lGLU -lGL  -lOpenThreads -L/opt/xfree86/default/lib -L/media/Programme/dev/cpp_libs/OpenSceneGraph/OpenSceneGraph-3.0.1-Ubuntu-x64-release-12741/lib64
bAuto.o: In function `osg::Referenced::unref() const':
bAuto.cpp:(.text._ZNK3osg10Referenced5unrefEv[osg::Referenced::unref() const]+0xd): undefined reference to `OpenThreads::Atomic::operator--()'

所以我与 OpenThreads 链接,它肯定在 lib64 文件夹中。如果我删除链接依赖项,它会向 OpenThreads 中的函数抛出更多链接器错误。我错过了什么?我也尝试了 x86 版本,但它告诉我所有其他库都不兼容,因此无法找到。我的系统是 x64 但它不应该向后兼容吗?

4

1 回答 1

0

这可能是相同的错误(阅读整个线程): http: //lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-October/017447.html

于 2012-12-12T22:36:18.340 回答