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("PAUSE");
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.
- d4rksh4de asked 12 years ago
- You must login to post comments
OK, I just forgot to include fmod_errors.h , I thought it was included in fmod.hpp already .
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.
- d4rksh4de answered 12 years ago
- You must login to post comments
Please login first to submit.