0
0

In VS2005 .net:
Project Properties->Configuration Properties->C/C++->Code Generation->Runtime Library

If I set this to: Mutli-threaded Debug DLL
All compiles/links and runs (more or less).

If I set this to: Multi-threaded DLL ( w/o debug )
I get the following linker errors.

[code:1995xoaf]1>Generating Code...
1>Linking...
1>SoundManager.obj : error LNK2019: unresolved external symbol _FMOD_System_Create referenced in function "enum FMOD_RESULT __cdecl FMOD::System_Create(class FMOD::System * *)" (?System_Create@FMOD@@YA?AW4FMOD_RESULT@@PAPAVSystem@1@@Z)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::init(int,unsigned int,void *)" (?init@System@FMOD@@QAE?AW4FMOD_RESULT@@HIPAX@Z) referenced in function "public: void __thiscall SoundManager::Playlist::initAudioSys(void)" (?initAudioSys@Playlist@SoundManager@@QAEXXZ)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::playSound(enum FMOD_CHANNELINDEX,class FMOD::Sound *,bool,class FMOD::Channel * *)" (?playSound@System@FMOD@@QAE?AW4FMOD_RESULT@@W4FMOD_CHANNELINDEX@@PAVSound@2@_NPAPAVChannel@2@@Z) referenced in function "private: void __thiscall SoundManager::Playlist::playSong(void)" (?playSong@Playlist@SoundManager@@AAEXXZ)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::isPlaying(bool *)" (?isPlaying@Channel@FMOD@@QAE?AW4FMOD_RESULT@@PA_N@Z) referenced in function "public: bool __thiscall SoundManager::Playlist::Run(void)" (?Run@Playlist@SoundManager@@QAE_NXZ)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::update(void)" (?update@System@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: bool __thiscall SoundManager::Playlist::Run(void)" (?Run@Playlist@SoundManager@@QAE_NXZ)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::release(void)" (?release@System@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: __thiscall SoundManager::Playlist::~Playlist(void)" (??1Playlist@SoundManager@@QAE@XZ)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Sound::release(void)" (?release@Sound@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: void __thiscall SoundManager::Playlist::clearPlaylist(void)" (?clearPlaylist@Playlist@SoundManager@@QAEXXZ)
1>SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::createStream(char const *,unsigned int,struct FMOD_CREATESOUNDEXINFO *,class FMOD::Sound * *)" (?createStream@System@FMOD@@QAE?AW4FMOD_RESULT@@PBDIPAUFMOD_CREATESOUNDEXINFO@@PAPAVSound@2@@Z) referenced in function "public: void __thiscall SoundManager::Playlist::addToPlaylist(char const *)" (?addToPlaylist@Playlist@SoundManager@@QAEXPBD@Z)
1>e:\Code\XXX\build\bin-Release\xxx.exe : fatal error LNK1120: 8 unresolved externals
1>Build log was saved at "file://e:\Code\xxx\build\working-Release\BuildLog.htm"
1>xxx – 9 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========[/code:1995xoaf]

Other things of import:
OS: Windows XP Pro (SP2+patches)
DirectX: 9 ( Nov 2005 )
FMODEX: fmod api 40303

Basically … this the Runtime Library setting has to match (from what I’ve seen) across all pieces of my project. It doesn’t matter what it is, as long as it matches.

The problem for me is now, I don’t have the fmodex source … so can’t recompile the dll with the matching setting to my projects.

At present I have no issues with the "debug" branch, but I do have a problem with my "release" branch.

Has anyone encountered this before? I have read through the forums and docs and didn’t see anything that would be helpful.

Any insight would be fantastic.

Thanks,
Sean (sryan@evercrack.com)[code:1995xoaf][/code:1995xoaf]

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.