我目前正在尝试在我的项目中使用最新的稳定fmod ex。fmod VS2008依赖项目中未解决的外部问题
我在一个名为engine4的项目中有一个主要的可执行文件,在解决方案中也有一个名为DX9Platform的项目,这个项目依赖于。所有的fmod代码都在这个DX9Platform项目中,它生成一个lib文件。
DX9Platform包含fmodex_vc.lib并且可以正常工作。然而,构建Engien4会导致无法解析的外部符号消息引用在DX9Platform项目中使用fmod的文件
我曾尝试将fmodex_vc.lib添加到Engine4项目,但没有成功,我该如何解决这个问题?
继承人的链接器输出:
3>------ Build started: Project: Engine4, Configuration: Release Direct3D9 Win32 ------
3>Linking...
3>DX9PlatformLib.lib(CFmodSound.obj) : error LNK2001: unresolved external symbol _FMOD_System_Create
3>DX9PlatformLib.lib(CFmodSound.obj) : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::createSound(char const *,unsigned int,struct FMOD_CREATESOUNDEXINFO *,class FMOD::Sound * *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
3>DX9PlatformLib.lib(CFmodSound.obj) : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::getVersion(unsigned int *)" ([email protected]@[email protected]@[email protected]@[email protected])
3>DX9PlatformLib.lib(CFmodSound.obj) : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::init(int,unsigned int,void *)" ([email protected]@[email protected]@[email protected]@[email protected])
3>DX9PlatformLib.lib(CFModAudioObject.obj) : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::playSound(enum FMOD_CHANNELINDEX,class FMOD::Sound *,bool,class FMOD::Channel * *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
3>DX9PlatformLib.lib(CFModAudioObject.obj) : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::getPaused(bool *)" ([email protected]@[email protected]@[email protected]@[email protected])
3>DX9PlatformLib.lib(CFModAudioObject.obj) : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::setPaused(bool)" ([email protected]@[email protected]@[email protected]@[email protected])
3>DX9PlatformLib.lib(CFModAudioObject.obj) : error LNK2001: unresolved external symbol "public: virtual class IAudioObject * __thiscall CFModAudioObject::LoadFile(char const *)" ([email protected]@@[email protected]@[email protected])
3>D:\media\desktop\engine4\Engine4\Output\Release Direct3D9\Engine4.exe : fatal error LNK1120: 8 unresolved externals
3>Build log was saved at "file://d:\media\desktop\engine4\Engine4\Engine4\intermediate\Release Direct3D9\BuildLog.htm"
3>Engine4 - 9 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
你能在这里发布确切的链接器输出吗?它可能是一些编译器设置导致的符号不匹配。 – 2009-12-10 04:51:43
完成,编辑了问题 – 2009-12-10 04:55:49
我也有这个问题。 – 2010-04-02 23:07:21