Savoy
01-08-2007 20:38:53
Hi!
I'm having trouble building OgreAL. When I build it I get these errors:
It seems that there is some problems with the libs. I have built them all myself.
OgreMain_d.lib
OpenAL32.lib
ALut.lib
vorbis_static_d.lib
vorbisfile_static_d.lib
ogg_static_d.lib
And I really can't find out what's wrong on my own, so if you have any ideas, please help me.
I'm having trouble building OgreAL. When I build it I get these errors:
------ Build started: Project: OgreAL, Configuration: Debug Win32 ------
Linking...
Creating library C:\Program\OgreSDK\OgreAL\lib\Debug\OgreAL_d.lib and object C:\Program\OgreSDK\OgreAL\lib\Debug\OgreAL_d.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
OgreALSoundManager.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z) referenced in function "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
OgreALSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
OgreALWavSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
OgreALListener.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
OgreALOggSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
OgreALOggSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
OgreALSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
OgreALSoundManager.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ) referenced in function "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
OgreALSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
OgreALWavSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
OgreALListener.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
OgreALOggSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
OgreALOggSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
OgreALSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
OgreALSoundManager.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z) referenced in function "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
OgreALSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALWavSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALListener.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALOggSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALOggSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALSoundManager.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALSoundStream.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALWavSound.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALListener.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALOggSound.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALOggSoundStream.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALSound.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@VHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
OgreALSoundManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALWavSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALListener.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z) referenced in function "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
OgreALOggSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALOggSoundStream.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_vc(void *,unsigned int)" (__imp_?op_del_vc@MemoryManager@Ogre@@AAEXPAXI@Z)
OgreALListener.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z) referenced in function "protected: virtual class Ogre::MovableObject * __thiscall OgreAL::ListenerFactory::createInstanceImpl(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::map<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> > > > > const *)" (?createInstanceImpl@ListenerFactory@OgreAL@@MAEPAVMovableObject@Ogre@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBV?$map@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@@6@@Z)
OgreALSound.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z)
OgreALSoundManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z)
OgreALOggSound.obj : error LNK2001: unresolved external symbol "public: __thiscall Ogre::Exception::~Exception(void)" (??1Exception@Ogre@@QAE@XZ)
OgreALOggSoundStream.obj : error LNK2001: unresolved external symbol "public: __thiscall Ogre::Exception::~Exception(void)" (??1Exception@Ogre@@QAE@XZ)
OgreALSound.obj : error LNK2001: unresolved external symbol "public: __thiscall Ogre::Exception::~Exception(void)" (??1Exception@Ogre@@QAE@XZ)
OgreALSoundManager.obj : error LNK2001: unresolved external symbol "public: __thiscall Ogre::Exception::~Exception(void)" (??1Exception@Ogre@@QAE@XZ)
OgreALSoundManager.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::SharedPtr<class std::vector<struct Ogre::FileInfo,class std::allocator<struct Ogre::FileInfo> > > __thiscall Ogre::ResourceGroupManager::listResourceFileInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?listResourceFileInfo@ResourceGroupManager@Ogre@@QAE?AV?$SharedPtr@V?$vector@UFileInfo@Ogre@@V?$allocator@UFileInfo@Ogre@@@std@@@std@@@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "private: class OgreAL::Sound * __thiscall OgreAL::SoundManager::_createSound(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> >,bool)" (?_createSound@SoundManager@OgreAL@@AAEPAVSound@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V45@_N@Z)
C:\Program\OgreSDK\OgreAL\lib\Debug\OgreAL_d.dll : fatal error LNK1120: 8 unresolved externals
Build log was saved at "file://c:\Program\OgreSDK\OgreAL\OgreAL\Debug\BuildLog.htm"
OgreAL - 44 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It seems that there is some problems with the libs. I have built them all myself.
OgreMain_d.lib
OpenAL32.lib
ALut.lib
vorbis_static_d.lib
vorbisfile_static_d.lib
ogg_static_d.lib
And I really can't find out what's wrong on my own, so if you have any ideas, please help me.