# Thread: compiling a simple Fmod program

1. ## compiling a simple Fmod program

I'm trying to get a simple progam to compile that uses FMod. When I compile it produces this error:

C:\projects\fmodtest\test.c
too many arguments to function `FSOUND_Sample_Load'

Why?

I'm using Dev-C++ 5 as my programming environment. Incase I haven't setup things up properly, I have fmod.h located in dev-cpp\include\fmod and fmod.lib in dev-cpp\libs.

Here's the code:
Code:
```#include <stdio.h>
#include "fmod.h"

int main(void)
{
FSOUND_SAMPLE* sound;
FSOUND_Init(44100, 32, 0);
FSOUND_PlaySound(FSOUND_FREE,sound);
getchar();
FSOUND_Sample_Free(sound);

FSOUND_Close();

return 0;
}```

2. you must include the proper libraries.

#pragma comment(lib, "fmodvc.lib")

and tell me if it works. make sure fmodvc.lib is in the same directory. obviously this is the library for visual studio, so if you don't use vc then it wont' work.

3. No, that doesn't work for me, but I found my problem. I had to change fmod.h to fmod/fmod.h