0
0

Hi All!
I have Fedora Core 11 and KDevelop. I’m trying use FMOD Ex v 4.29 library.
I take example "playsound" but it not compiling.
Error is
[quote:e0wccxc0]prg8.o: In function System_Create':
/usr/local/include/fmodex/fmod.hpp:45: undefined reference to
FMOD_System_Create’
[/quote:e0wccxc0]
my code is
[code:e0wccxc0]#include <stdio.h>

include <stdlib.h>

include <fmodex/fmod.hpp>

include <fmodex/fmod_errors.h>

void ERRCHECK(FMOD_RESULT result)
{
if (result != FMOD_OK)
{
printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
exit(-1);
}
}

int main(int argc, char *argv[])
{
FMOD::System *system;
FMOD_RESULT result;
int key;
unsigned int version;

result = FMOD::System_Create(&amp;system);
ERRCHECK(result);

result = system-&gt;getVersion(&amp;version);
ERRCHECK(result);

if (version &lt; FMOD_VERSION)
{
    printf(&quot;Error!  You are using an old version of FMOD %08x.  This program requires %08x\n&quot;, version, FMOD_VERSION);
    getchar();
    return 0;
}

result = system-&gt;close();
ERRCHECK(result);
result = system-&gt;release();
ERRCHECK(result);

return 0;

}[/code:e0wccxc0]
What am I doing wrong?
p.s. I have used FMOD Ex v. 4.28/ error is same

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.