0
0

I get :

<snip>
[Linker error] undefined reference to _imp__waveOutPrepareHeader@12'
[Linker error] undefined reference to
_imp__waveOutWrite@12′
[Linker error] undefined reference to _imp__waveOutUnprepareHeader@12'
[Linker error] undefined reference to
_imp__waveOutGetPosition@12′
[Linker error] undefined reference to _imp__waveOutOpen@24'
[Linker error] undefined reference to
_imp__waveOutReset@4′
[Linker error] undefined reference to `_imp__waveOutClose@4′
</snip>

I don’t get what im doing wrong..

Linker=-lminifmod

(using dev-c++)

  • You must to post comments
0
0

cool, now I get:

<snip>
[Linker error] undefined reference to FSOUND_File_SetCallbacks'
[Linker error] undefined reference to
FSOUND_Init’
[Linker error] undefined reference to FMUSIC_LoadSong'
[Linker error] undefined reference to
FMUSIC_PlaySong’
</snip>

:o)

  • You must to post comments
0
0

well.. take a look at my source, and tell me if that’s where my problem lies:

<snip>

include <iostream>

include <windows.h>

include <conio.c>

include <ctime>

include “minifmod.h”

using namespace std;

unsigned int fileopen(char *name)
{
return (unsigned int)fopen(name, “rb”);
}

void fileclose(unsigned int handle)
{
fclose((FILE *)handle);
}

int fileread(void *buffer, int size, unsigned int handle)
{
return fread(buffer, 1, size, (FILE *)handle);
}

void fileseek(unsigned int handle, int pos, signed char mode)
{
fseek((FILE *)handle, pos, mode);
}

int filetell(unsigned int handle)
{
return ftell((FILE *)handle);
}

int main(int argc, char *argv[])
{
FMUSIC_MODULE *mod;

FSOUND_File_SetCallbacks(fileopen, fileclose, fileread, fileseek, filetell);

if (!FSOUND_Init(44100, 0))
{
printf(“Error upon initialization\n”);
return(0);
}

mod = FMUSIC_LoadSong("the-name-of-the-track.xm", NULL); //sampleloadcallback);
if (!mod)
{
    printf("Error loading song\n");
    return(0);
}

FMUSIC_PlaySong(mod);

 ..all my further code which is unnecessary to show you all :)

FMUSIC_FreeSong(mod);
   FSOUND_Close();

}
</snip>

  • You must to post comments
0
0

I don’t know about your minifmod problem, but why are you including conio.c ?
Wasn’t conio.h an old borland include file ?

  • You must to post comments
0
0

And you have of course added all the minifmod sources to your project?

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.