游戏开发论坛

 找回密码
 立即注册
搜索
查看: 5567|回复: 7

是哪里配置的不对??

[复制链接]

8

主题

15

帖子

15

积分

新手上路

Rank: 1

积分
15
发表于 2007-6-24 09:46:00 | 显示全部楼层 |阅读模式
按网上的说明配置的vc8
运行下面的程序,却报很多错误,谁能告诉我再怎么配置啊,急谢!
#include "ExampleApplication.h"

class TutorialApplication : public ExampleApplication
{
protected:
public:
    TutorialApplication()
    {
    }

    ~TutorialApplication()
    {
    }
protected:
    void createScene(void)
    {
    }
};

#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char **argv)
#endif
{
    // Create application object
    TutorialApplication app;

    try {
        app.go();
    } catch( Exception& e ) {
#if OGRE_PLATFORM == PLATFORM_WIN32
        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_IConERROR | MB_TASKMODAL);
#else
        fprintf(stderr, "An exception has occured: %s\n", e.getFullDescription().c_str());
#endif
    }

    return 0;
}
报这样的错:
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ),该符号在函数 "public: virtual void __thiscall ExampleApplication::go(void)" (?go@ExampleApplication@@UAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::TextureManager & __cdecl Ogre::TextureManager::getSingleton(void)" (__imp_?getSingleton@TextureManager@Ogre@@SAAAV12@XZ),该符号在函数 "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::Root::Root(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0Root@Ogre@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z),该符号在函数 "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::RenderWindow * __thiscall Ogre::Root::initialise(bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?initialise@Root@Ogre@@QAEPAVRenderWindow@2@_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall Ogre::Root::showConfigDialog(void)" (__imp_?showConfigDialog@Root@Ogre@@QAE_NXZ),该符号在函数 "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::SceneManager * __thiscall Ogre::Root::createSceneManager(unsigned short,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?createSceneManager@Root@Ogre@@QAEPAVSceneManager@2@GABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::chooseSceneManager(void)" (?chooseSceneManager@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::lookAt(class Ogre::Vector3 const &)" (__imp_?lookAt@Camera@Ogre@@QAEXABVVector3@2@@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Camera@Ogre@@QAEXABVVector3@2@@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(float,float,float)" (__imp_??0Vector3@Ogre@@QAE@MMM@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Root::addFrameListener(class Ogre::FrameListener *)" (__imp_?addFrameListener@Root@Ogre@@QAEXPAVFrameListener@2@@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createFrameListener(void)" (?createFrameListener@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall Ogre::WindowEventListener::~WindowEventListener(void)" (__imp_??1WindowEventListener@Ogre@@UAE@XZ),该符号在函数 __unwindfunclet$??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z$2 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall Ogre::FrameListener::~FrameListener(void)" (__imp_??1FrameListener@Ogre@@UAE@XZ),该符号在函数 __unwindfunclet$??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z$2 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl Ogre::WindowEventUtilities::addWindowEventListener(class Ogre::RenderWindow *,class Ogre::WindowEventListener *)" (__imp_?addWindowEventListener@WindowEventUtilities@Ogre@@SAXPAVRenderWindow@2@PAVWindowEventListener@2@@Z),该符号在函数 __catch$??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z$0 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (__imp_?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@Z),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre:ogManager::logMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum Ogre::LogMessageLevel,bool)" (__imp_?logMessage@LogManager@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4LogMessageLevel@2@_N@Z),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::LogManager * __cdecl Ogre::LogManager::getSingletonPtr(void)" (__imp_?getSingletonPtr@LogManager@Ogre@@SAPAV12@XZ),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::Overlay * __thiscall Ogre::OverlayManager::getByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?getByName@OverlayManager@Ogre@@QAEPAVOverlay@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::OverlayManager & __cdecl Ogre::OverlayManager::getSingleton(void)" (__imp_?getSingleton@OverlayManager@Ogre@@SAAAV12@XZ),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(class Ogre::Vector3 const &)" (__imp_??0Vector3@Ogre@@QAE@ABV01@@Z),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::ZERO" (__imp_?ZERO@Vector3@Ogre@@2V12@B)
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::WindowEventListener::WindowEventListener(void)" (__imp_??0WindowEventListener@Ogre@@QAE@XZ),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::FrameListener::FrameListener(void)" (__imp_??0FrameListener@Ogre@@QAE@XZ),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
test2vc8.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall Ogre::WindowEventListener::windowMoved(class Ogre::RenderWindow *)" (?windowMoved@WindowEventListener@Ogre@@UAEXPAVRenderWindow@2@@Z)
test2vc8.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall Ogre::WindowEventListener::windowFocusChange(class Ogre::RenderWindow *)" (?windowFocusChange@WindowEventListener@Ogre@@UAEXPAVRenderWindow@2@@Z)
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: struct OIS::MouseState const & __thiscall OIS::Mouse::getMouseState(void)const " (__imp_?getMouseState@Mouse@OIS@@QBEABUMouseState@2@XZ),该符号在函数 "public: virtual void __thiscall ExampleFrameListener::windowResized(class Ogre::RenderWindow *)" (?windowResized@ExampleFrameListener@@UAEXPAVRenderWindow@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl OIS::InputManager::destroyInputSystem(class OIS::InputManager *)" (__imp_?destroyInputSystem@InputManager@OIS@@SAXPAV12@@Z),该符号在函数 "public: virtual void __thiscall ExampleFrameListener::windowClosed(class Ogre::RenderWindow *)" (?windowClosed@ExampleFrameListener@@UAEXPAVRenderWindow@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Vector3 const &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVVector3@2@@Z),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::Vector3 const & __thiscall Ogre::Camera::getDerivedPosition(void)const " (__imp_?getDerivedPosition@Camera@Ogre@@QBEABVVector3@2@XZ),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre:uaternion const &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVQuaternion@2@@Z),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::Quaternion const & __thiscall Ogre::Camera::getDerivedOrientation(void)const " (__imp_?getDerivedOrientation@Camera@Ogre@@QBEABVQuaternion@2@XZ),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPolygonMode(enum Ogre:olygonMode)" (__imp_?setPolygonMode@Camera@Ogre@@QAEXW4PolygonMode@2@@Z),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::MaterialManager::setDefaultAnisotropy(unsigned int)" (__imp_?setDefaultAnisotropy@MaterialManager@Ogre@@QAEXI@Z),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::MaterialManager & __cdecl Ogre::MaterialManager::getSingleton(void)" (__imp_?getSingleton@MaterialManager@Ogre@@SAAAV12@XZ),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::yaw(class Ogre::Radian const &)" (__imp_?yaw@Camera@Ogre@@QAEXABVRadian@2@@Z),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static float __cdecl Ogre::Math:egreesToRadians(float)" (__imp_?DegreesToRadians@Math@Ogre@@SAMM@Z),该符号在函数 "public: float __thiscall Ogre::Degree::valueRadians(void)const " (?valueRadians@Degree@Ogre@@QBEMXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Overlay::hide(void)" (__imp_?hide@Overlay@Ogre@@QAEXXZ),该符号在函数 "public: void __thiscall ExampleFrameListener::showDebugOverlay(bool)" (?showDebugOverlay@ExampleFrameListener@@QAEX_N@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Overlay::show(void)" (__imp_?show@Overlay@Ogre@@QAEXXZ),该符号在函数 "public: void __thiscall ExampleFrameListener::showDebugOverlay(bool)" (?showDebugOverlay@ExampleFrameListener@@QAEX_N@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::Vector3 & __thiscall Ogre::Vector3:perator=(class Ogre::Vector3 const &)" (__imp_??4Vector3@Ogre@@QAEAAV01@ABV01@@Z),该符号在函数 "public: virtual bool __thiscall ExampleFrameListener::frameStarted(struct Ogre::FrameEvent const &)" (?frameStarted@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall OIS::MouseState::buttonDown(enum OIS::MouseButtonID)const " (__imp_?buttonDown@MouseState@OIS@@QBE_NW4MouseButtonID@2@@Z),该符号在函数 "public: bool __thiscall ExampleFrameListener::processUnbufferedMouseInput(struct Ogre::FrameEvent const &)" (?processUnbufferedMouseInput@ExampleFrameListener@@QAE_NABUFrameEvent@Ogre@@@Z) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::moveRelative(class Ogre::Vector3 const &)" (__imp_?moveRelative@Camera@Ogre@@QAEXABVVector3@2@@Z),该符号在函数 "public: void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@QAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::pitch(class Ogre::Radian const &)" (__imp_?pitch@Camera@Ogre@@QAEXABVRadian@2@@Z),该符号在函数 "public: void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@QAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned int,unsigned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IGDH@Z),该符号在函数 "protected: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned long,unsigned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KGDH@Z),该符号在函数 "protected: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(float,unsigned short,unsigned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MGGDH@Z),该符号在函数 "protected: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::OverlayElement * __thiscall Ogre::OverlayManager::getOverlayElement(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (__imp_?getOverlayElement@OverlayManager@Ogre@@QAEPAVOverlayElement@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z),该符号在函数 "protected: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl Ogre::WindowEventUtilities::removeWindowEventListener(class Ogre::RenderWindow *,class Ogre::WindowEventListener *)" (__imp_?removeWindowEventListener@WindowEventUtilities@Ogre@@SAXPAVRenderWindow@2@PAVWindowEventListener@2@@Z),该符号在函数 "public: virtual __thiscall ExampleFrameListener::~ExampleFrameListener(void)" (??1ExampleFrameListener@@UAE@XZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualHeight(void)const " (__imp_?getActualHeight@Viewport@Ogre@@QBEHXZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualWidth(void)const " (__imp_?getActualWidth@Viewport@Ogre@@QBEHXZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Viewport::setBackgroundColour(class Ogre::ColourValue const &)" (__imp_?setBackgroundColour@Viewport@Ogre@@QAEXABVColourValue@2@@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::ColourValue::ColourValue(float,float,float,float)" (__imp_??0ColourValue@Ogre@@QAE@MMMM@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall Ogre::ConfigFile::~ConfigFile(void)" (__imp_??1ConfigFile@Ogre@@UAE@XZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::ResourceGroupManager::addResourceLocation(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (__imp_?addResourceLocation@ResourceGroupManager@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00_N@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::ResourceGroupManager & __cdecl Ogre::ResourceGroupManager::getSingleton(void)" (__imp_?getSingleton@ResourceGroupManager@Ogre@@SAAAV12@XZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Ogre::MapIterator<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > *,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > *> > > > __thiscall Ogre::ConfigFile::getSectionIterator(void)" (__imp_?getSectionIterator@ConfigFile@Ogre@@QAE?AV?$MapIterator@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@2@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@2@@std@@@2@@std@@@2@XZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::ConfigFile::load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (__imp_?load@ConfigFile@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0_N@Z),该符号在函数 "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::ConfigFile(void)" (__imp_??0ConfigFile@Ogre@@QAE@XZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::ResourceGroupManager::initialiseAllResourceGroups(void)" (__imp_?initialiseAllResourceGroups@ResourceGroupManager@Ogre@@QAEXXZ),该符号在函数 "protected: virtual void __thiscall ExampleApplication::loadResources(void)" (?loadResources@ExampleApplication@@MAEXXZ) 中被引用
test2vc8.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::Root::~Root(void)" (__imp_??1Root@Ogre@@QAE@XZ),该符号在函数 "public: void * __thiscall Ogre::Root::`scalar deleting destructor'(unsigned int)" (??_GRoot@Ogre@@QAEPAXI@Z) 中被引用
MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
C:\3Dtest\test2vc8\Debug\test2vc8.exe : fatal error LNK1120: 59 个无法解析的外部命令

16

主题

280

帖子

280

积分

中级会员

Rank: 3Rank: 3

积分
280
QQ
发表于 2007-6-24 09:49:00 | 显示全部楼层

Re: 是哪里配置的不对??

[em10]

5

主题

34

帖子

34

积分

注册会员

Rank: 2

积分
34
发表于 2007-6-25 09:51:00 | 显示全部楼层

Re:是哪里配置的不对??

没有链接ogremain.lib

8

主题

15

帖子

15

积分

新手上路

Rank: 1

积分
15
 楼主| 发表于 2007-6-25 15:37:00 | 显示全部楼层

Re: 是哪里配置的不对??

我在项目-属性-连接器-命令行-附加选项中写入"C:\OgreSDK\lib\OgreMain.lib" "C:\OgreSDK\lib\ois.lib",那一堆错误就没有了;
而我本来就在工具-选项-VC++目录中的库文件设置了路径C:\OgreSDK\lib,不知道为什么还要以上那么处理。

后来又报这个错误:
MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
C:\3Dtest\test1vc8\test1vc8\Debug\test1vc8.exe : fatal error LNK1120: 1 个无法解析的外部命令
则将程序做了如下处理:
//#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
//#define WIN32_LEAN_AND_MEAN
//#include "windows.h"

//INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
//#else
int main(int argc, char **argv)
//#endif
{  ……
不知道为什么预编译处理的不对?

再编译出现如下错误:
项目 : error PRJ0003 : 生成“cmd.exe”时出错。
而我本来环境变量就已经设置了%SystemRoot%\system32;
我又在工具-选项中的可执行文件路径加了c:\windows\system32;
编译这次过关。

接着运行,却出错了:
“没有找到OgreMain.dll,因为这个应用程序未能启动”
而我在vc8里设置了
可执行文件:
C:\OgreSDK\bin\debug
包含文件
D:\DXSDK\Include
C:\OgreSDK\samples\include
C:\OgreSDK\include
C:\OgreSDK\ogrenew\Dependencies\include
库文件
D:\DXSDK\Lib
C:\OgreSDK\lib
C:\OgreSDK\ogrenew\Dependencies\lib\Release

谁能告诉我这到底是为什么啊??????

47

主题

145

帖子

3602

积分

论坛元老

Rank: 8Rank: 8

积分
3602
发表于 2007-6-25 17:51:00 | 显示全部楼层

Re:是哪里配置的不对??

记得还需要 什么 ServerPack 这个是2005必须安装的  如果是2003就不需要

8

主题

15

帖子

15

积分

新手上路

Rank: 1

积分
15
 楼主| 发表于 2007-6-26 11:39:00 | 显示全部楼层

Re: 是哪里配置的不对??

什么问题啊???
sf_2007626113928.jpg

31

主题

278

帖子

298

积分

中级会员

Rank: 3Rank: 3

积分
298
发表于 2007-6-26 23:48:00 | 显示全部楼层

Re:是哪里配置的不对??

错误提示说得很清楚....

2

主题

17

帖子

23

积分

注册会员

Rank: 2

积分
23
发表于 2007-7-3 12:47:00 | 显示全部楼层

Re: Re: 是哪里配置的不对??

harrile: Re: 是哪里配置的不对??

什么问题啊???


工作目录错误,放bin\release bin\debug里面,我也是新手,自己做了个vc7的配置,随便放哪里都可以跑,有空发网上给大伙分享,vc8编译太慢而且非托管也没什么改进,就凭这点你放心官方是不会放弃vc7的拉
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-25 23:21

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表