FMOD in Code::Blocks

hey i'm using Code::Blocks and i download FMOD library so i can play music and sound in my program.
i tried to install it in Code::Blocks but it wont work.
iv'e put the files from FMOD in a the folder of my program,
and in the project build options in the linker settings i put fmod_vc.lib and fmodstudio_vc.lib
and in the search directories of the linker i put the folder of fmod_vc.lib and fmodstudio_vc.lib
and in the search directories of the compiler i put every folder which have a header.
it wont work and its giving me the eror:"cannot find -lfmod_vc.lib".
i never added a library before so maybe i missed a step.
any idea how to make it work?

this is a code i copied from "FMOD Studio Programmers API for Windows" to see if its working.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  #include <iostream>
#include <timer.h>
#include <fmod.hpp>
#include <fmod_errors.h>
#include <fmod_studio.hpp>
#include <fmod_studio.h>
#include <fmod_studio_common.h>
using namespace std;

FMOD_RESULT result;
FMOD::Studio::System* sys = NULL;
int main(){
result = FMOD::Studio::System::create(&sys); // Create the Studio System object.
if (result != FMOD_OK)
{
    printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
    exit(-1);
}

// Initialize FMOD Studio, which will also initialize FMOD Low Level
result = sys->initialize(512, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, 0);
if (result != FMOD_OK)
{
    printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
    exit(-1);
}


return 0;
}
Do you use Visual Studio compiler inside Code::Blocks ? Because that's the libraries for.

If not, do you have FMOD libraries for MinGW ? It should have *.a extension.
Topic archived. No new replies allowed.