0
0

Just started using FMOD Ex, copy-pasted the intialisation code from the documentation and changed a couple of things to match my naming scheme:
[code:lkp0bwnx]
FMOD_RESULT result;
result = FMOD::System_Create(&gFMODSystem); // Create the main system object.
if (result != FMOD_OK)
{
printf("FMOD error! (%d) %s\n", result, FMOD_ErrorString(result));
exit(-1);
}

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

VC++ 08 gives me 2 of the same error: "error C3861: ‘FMOD_ErrorString’: identifier not found" Why would it be able to find things like FMOD_RESULT and System::Init() but not FMOD_ErrorString?

cheers,
metal

  • You must to post comments
0
0

"FMOD_ErrorString()" is defined in "fmod_errors.h", so add
[code:h0rpitao]#include "fmod_errors.h"[/code:h0rpitao]
to your source file.

  • You must to post comments
0
0

Oh, OK. Thanks. The ‘Getting Started’ article only tells you to include fmod.h or fmod.hpp, not fmod_errors.h. It then goes on to use something from that file in the very first listing 😮

cheers,
metal

  • You must to post comments
0
0

One more basic question:
I’ve linked fmodex_vc.lib and #included <fmod.hpp> without a problem, but how do I link fmodex.dll in VC++08? I looked through the linker options but couldn’t find it.

cheers,
metal

  • You must to post comments
0
0

fmodex_vc.lib is probably what you’re looking for.

If you look in api/lib you’ll see a file called "which library do I use.txt", you can see in there.

  • You must to post comments
0
0

[quote="Dogbert":2so69zic]fmodex_vc.lib is probably what you’re looking for.[/quote:2so69zic]
[quote="metalmidget":2so69zic]I’ve linked fmodex_vc.lib[/quote:2so69zic] The .lib and the .h are not the problem. It’s the .dll I’m trying to get to work. I have it running now, but I had to copy the .dll into my project’s folder. Surely I don’t have to do this for every project I make? My question is how do I tell VC++08 to look for [b:2so69zic][i:2so69zic]DLLs[/i:2so69zic][/b:2so69zic] in a particular place.

cheers,
metal

  • You must to post comments
0
0

Sorry, I misunderstood your question.

…so this is more of a VS question than an FMOD question? 0.o

  • You must to post comments
0
0

I too would like to know (if anyone knows).

  • You must to post comments
0
0

[quote="Dogbert":d06cada2]Sorry, I misunderstood your question.

…so this is more of a VS question than an FMOD question? 0.o[/quote:d06cada2]
😳 Yeah I guess so. I’ve posted on another forum in their VC++ section, but seeing as I already had a thread open here on a related topic I figured I’d just tack this question on the end here, too.

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.