编译Ogre程序的问题 - 对Ogre方法的未定义引用

时间:2016-11-03 22:51:55

标签: c++ gcc makefile ogre

我正在尝试构建一个我编写Makefile的Ogre程序。但是,在尝试制作程序时,我收到以下错误:

Me.Text365.Value = DateDiff("d", Me.start_date, Me.end_date)

我的Makefile如下:

...
GraphicsSystem.cpp:(.text+0x3a9b): undefined reference to `Ogre::Quaternion::IDENTITY'
GraphicsSystem.cpp:(.text+0x3aa2): undefined reference to `Ogre::Vector3::ZERO'
GraphicsSystem.cpp:(.text+0x3ad5): undefined reference to `Ogre::Node::setPosition(float, float, float)'
GraphicsSystem.cpp:(.text+0x3b60): undefined reference to `Ogre::MovableObject::detachFromParent()'
GraphicsSystem.cpp:(.text+0x3b7a): undefined reference to `Ogre::SceneNode::attachObject(Ogre::MovableObject*)'
GraphicsSystem.cpp:(.text+0x3bac): undefined reference to `Ogre::Camera::setPosition(Ogre::Vector3 const&)'
GraphicsSystem.cpp:(.text+0x3c22): undefined reference to `Ogre::Camera::setAutoAspectRatio(bool)'
...
collect2: error: ld returned 1 exit status
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1

即使我指定了所有库,我仍然会收到提到未定义引用的消息。有人有任何想法吗?

0 个答案:

没有答案