0
0

Here is the code:[code:2pyryi1c]#include <cstdlib>

include <fmod.hpp>

include <stdio.h>

//#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
FMOD_RESULT result;
FMOD::System *system_;

result = FMOD::System_Create(&system_); // Create the main system object.
if (result != FMOD_OK)
{
printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
exit(-1);
}

result = system_->init(100, FMOD_INIT_NORMAL, 0); // Initialize FMOD.
if (result != FMOD_OK)
{
printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
exit(-1);
}

system(&quot;PAUSE&quot;);
return 0;

}
[/code:2pyryi1c]And errors:[code:2pyryi1c]line 16 C:\CPP\FMOD Programmers API\api\lib\confmodtest.cpp `FMOD_ErrorString’ undeclared (first use this function) [/code:2pyryi1c]I tried linking with both libfmodexp.a and libfmodex.a. Both ways I got same error. And in the documentation I can’t even find the “FMOD_ErrorString”, only in example code.

  • You must to post comments
0
0

OK, I just forgot to include fmod_errors.h , I thought it was included in fmod.hpp already :roll: .
So now i get other errors and I guess it’s because I use C++ instead of C. Is there any way to get it working on Dev-C++? I can’t/don’t want to use C.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.