0
0

For anyone experiencing similar problems with this platform, I was recently getting a bunch of linker errors like:

[code:24skreby]
sound.obj : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::update(void)" (?update@System@FMOD@@QAE?AW4FMOD_RESULT@@XZ)
sound.obj : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::init(int,unsigned int,void *)" (?init@System@FMOD@@QAE?AW4FMOD_RESULT@@HIPAX@Z)
sound.obj : error LNK2001: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::release(void)" (?release@System@FMOD@@QAE?AW4FMOD_RESULT@@XZ)
sound.obj : error LNK2001: unresolved external symbol _FMOD_System_Create
[/code:24skreby]

I was certain I had linked everything correctly and all the latest files, so I searched around the forum. I ended up finding the solution at the end of this thread: http://52.88.2.202/forum/viewtopic.php?t=4284

Basically at the end he mentions he added /DWIN32 to his additional compiler paremeters. I tried this, and it got rid of the errors.

  • You must to post comments
0
0

well we use vs2005 here as well. The issue is that fmod.h picks up the define set in the compiler to tell it it is for windows. What did you have yours set to? Did you undef win32 somewhere else?

  • You must to post comments
0
0

I didn’t undef anything myself, and the only other non-standard lib I am using is Allegro; so it’s possible that may have done it somewhere.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.