0
0

Hi everyone,

this is my first post here. Ive tried Fmod today and been stuck with it for atleast over 4 hours!!!!

I just cant figure it out!!

btw im using C++ in visual studio 2003!

I get this error message while compiling:

EGG error LNK2019: unresolved external symbol _FSOUND_Close@0 referenced in function “public: void __thiscall GameFramework::MainGameInput(void)” (?MainGameInput@GameFramework@@QAEXXZ)

actually theres 6 error messages similar to that one!!!!

heres my code:

[code:3u3r4m4w]#include "fmod.h" //this is right at the top

FMUSIC_MODULE* handle;

...
//then sometime later i have the function if someone presses fire use the sound
...

//When the User presses the FIRE key F.
if (AdventureGame.keypressed[DIK_F] & 0x80 )
{

FSOUND_Init (44100, 32, 0);

handle=FMUSIC_LoadSong ("MGS2 Main Theme.wav");

FMUSIC_SetLooping (handle, false);

FMUSIC_PlaySong (handle);

FMUSIC_FreeSong (handle);
FSOUND_Close();

....[/code:3u3r4m4w]

plz someone help urgently as i need to do add sound for my game for my project which is due in on thursday!!!

thnx alot!!

  • You must to post comments
0
0

have you linked to the fmod lib? also red this http://52.88.2.202/forum/viewtopic.php?t=2585

  • You must to post comments
0
0

[quote="birty":20nztx5f]have you linked to the fmod lib? also red this http://52.88.2.202/forum/viewtopic.php?t=2585[/quote:20nztx5f]

i think that might be the problem can u help me with that please!!!

all ive done is put the fmod.dll file into the same folder as my other .cpp files!!!

  • You must to post comments
0
0

qutoe from the documentation
[quote:33f8h45s]MSVC – #include “fmod.h” into your source code and link fmodvc.lib by putting it into your link section/makefile/project[/quote:33f8h45s]

  • You must to post comments
0
0

does that mean i dont have to do anything else with the .dll file just put it in the same folder!!!????

also about this .lib file i dont understnad! could u plz explain how to add it into my project? where do i do it from?

thnx alot for ur help!!

  • You must to post comments
0
0

Here’s what I did for Visual C++ 6.0, not sure if its the same for Visual Studio 7.0

There should be a menu called Project in on the main menu (along the top). Choose that and click Settings. In Settings, I think there is a tab called Link. In that section there is a field which asks for any modules you would like to link to. Type in fmodvc.lib or whatever it is and press OK.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.