0
0

Hi,
I use DEV-C++ 4.9.9.1. But i get two linker error.
The first:
[Linker error] undefined reference to _ZN4FMOD6System4initEijPv@16'
The second:
[Linker error] undefined reference to
_ZN4FMOD6System11createSoundEPKcjP22FMOD_CREATESOUNDEXINFOPPNS_5SoundE@20′

I don’t whats wrong. Here is my code in c++:
[code:35ak2i4e]

//—————————————————————————

include "fmod.hpp" // Header file for FMOD Sound Lib

include "fmod_errors.h"

//—————————————————————————

void ERRCHECK(FMOD_RESULT result)
{
if (result != FMOD_OK)
{
exit(0);
}
}

//—————————————————————————
// Name: fmodMain()
// Desc: FMOD init
//—————————————————————————
void fmodMain()
{
FMOD::System *TSystem;
FMOD::Sound *TSound;
FMOD::Channel *TChannel = 0;
FMOD_RESULT result;
FMOD::System_Create(&TSystem);
result = TSystem->init(32, FMOD_INIT_NORMAL, 0);
ERRCHECK(result);
result = TSystem->createSound("music.mp3", FMOD_LOOP_NORMAL, 0, &TSound);
ERRCHECK(result);
}
[/code:35ak2i4e]

Its like the multi-sound-card example.
The fmod-lib is al so added.

Greez
Nico000

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.