ASND Problems

Post Reply
holy_artefact
Posts: 2
Joined: Fri Apr 24, 2009 4:15 am

ASND Problems

Post by holy_artefact » Fri Apr 24, 2009 4:22 am

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.

WiiCrazy
Posts: 1
Joined: Fri May 01, 2009 11:20 am

Re: ASND Problems

Post by WiiCrazy » Fri May 01, 2009 11:24 am

Add reference to Asnd library in the makefile, that will resolve the issue...

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

holy_artefact
Posts: 2
Joined: Fri Apr 24, 2009 4:15 am

Re: ASND Problems

Post by holy_artefact » Sat May 02, 2009 12:39 am

Thanks WiiCrazy!
It compiled!
It's not easy to know what references is missing in C++.
But now I can continue!

Thanks again!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests