0
0

Anyway, I did solved my problems regarding last post.
But now i get some errors when I try to compile my program in "Relese Mode". In "Debug Mode" all went fine, but when I try to do it in "Relese" i get these errors :

[code:157s74zm]

Error 1 error LNK2001: unresolved external symbol _FSOUND_Init@12 main.obj

Error 2 error LNK2001: unresolved external symbol _FMUSIC_PlaySong@4 main.obj

Error 3 error LNK2001: unresolved external symbol _FMUSIC_LoadSong@4 main.obj

Error 4 fatal error LNK1120: 3 unresolved externals D:\My Documents\Visual Studio 2005\Projects\New\Release\New.exe 1

[/code:157s74zm]

I’m using Microsoft Visual Studio 2005 SP2 – and i did link fmodvc.lib in my project.

This is the code

[code:157s74zm]

include <iostream>

include <fmod.h>

using namespace std;

int main () {

cout << " Playing GC.it . . . . " << endl;

FMUSIC_MODULE *pjesma = NULL;
FSOUND_Init (44000,32,0);

pjesma = FMUSIC_LoadSong ("GC.it");
FMUSIC_PlaySong(pjesma);

system("pause");

return 0;

}

[/code:157s74zm]

Thanks!!!

  • You must to post comments
0
0

You often have to specify the link libs in both release and debug (it allows you to link different libs in each build), check that just in case.

  • You must to post comments
0
0

Yup, that’s it. Thanks.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.