Page 1 of 1

ASND Problems

Posted: Fri Apr 24, 2009 4:22 am
by holy_artefact
Hello.

Maybe you guys know codemii's tutorial. I tried to compile the latest tutorial for playing .mod but every time I compile I've got these errors.

linking ... tutorial12.elf
c:/devkitPro/libogc/lib/wii\libmodplay.a(gcmodplay.o): In function `SndBufStop':
gcmodplay.c:(.text.SndBufStop+0x24): undefined reference to `ASND_StopVoice'
c:/devkitPro/libogc/lib/wii\libmodplay.a(gcmodplay.o): In function `SndBufStart':
gcmodplay.c:(.text.SndBufStart+0x1a0): undefined reference to `ASND_SetVoice'
gcmodplay.c:(.text.SndBufStart+0x1bc): undefined reference to `ASND_Pause'
c:/devkitPro/libogc/lib/wii\libmodplay.a(gcmodplay.o): In function `dmaCallback':
gcmodplay.c:(.text.dmaCallback+0xbc): undefined reference to `ASND_AddVoice'
c:/devkitPro/libogc/lib/wii\libmodplay.a(gcmodplay.o): In function `MODPlay_Init':
gcmodplay.c:(.text.MODPlay_Init+0x24): undefined reference to `ASND_Pause'
gcmodplay.c:(.text.MODPlay_Init+0x2c): undefined reference to `ASND_StopVoice'
collect2: ld returned 1 exit status
make[1]: *** [/d/Projets/tutorial12/tutorial12.elf] Error 1
"make": *** [build] Error 2

I googled for this and I only found some french guy who have the same problem, but no one anwsered is problem. But he said that using libogc 1.4.9 that it was working. What happened? Or what is the problem?

Regards.

Re: ASND Problems

Posted: Fri May 01, 2009 11:24 am
by WiiCrazy
Add reference to Asnd library in the makefile, that will resolve the issue...

In the makefile, LIBS section add -lasnd after -lmodplay

Re: ASND Problems

Posted: Sat May 02, 2009 12:39 am
by holy_artefact
Thanks WiiCrazy!
It compiled!
It's not easy to know what references is missing in C++.
But now I can continue!

Thanks again!