Problem with libasnd after fresh install.

Post Reply
spiffen
Posts: 3
Joined: Tue Jan 27, 2009 12:03 am

Problem with libasnd after fresh install.

Post by spiffen » Tue Jan 27, 2009 12:09 am

After I installed a fresh copy of devkitPro, using "devkitProUpdater-1.4.9", I'm getting the following error when compiling my project.

Code: Select all

linking ... combat4.elf
c:/devkitPro/libogc/lib/wii\libasnd.a(asndlib.o): In function `ASND_End':
asndlib.c:(.text.ASND_End+0x28): undefined reference to `AUDIO_StopDMA'
asndlib.c:(.text.ASND_End+0x44): undefined reference to `AUDIO_RegisterDMACallback'
c:/devkitPro/libogc/lib/wii\libasnd.a(asndlib.o): In function `__dsp_initcallback':
asndlib.c:(.text.__dsp_initcallback+0x10): undefined reference to `DSP_SendMailTo'
asndlib.c:(.text.__dsp_initcallback+0x14): undefined reference to `DSP_CheckMailTo'
asndlib.c:(.text.__dsp_initcallback+0x2c): undefined reference to `DSP_SendMailTo'
asndlib.c:(.text.__dsp_initcallback+0x30): undefined reference to `DSP_CheckMailTo'
c:/devkitPro/libogc/lib/wii\libasnd.a(asndlib.o): In function `__dsp_requestcallback':
asndlib.c:(.text.__dsp_requestcallback+0x218): undefined reference to `DSP_SendMailTo'
asndlib.c:(.text.__dsp_requestcallback+0x21c): undefined reference to `DSP_CheckMailTo'
asndlib.c:(.text.__dsp_requestcallback+0x468): undefined reference to `DSP_SendMailTo'
asndlib.c:(.text.__dsp_requestcallback+0x46c): undefined reference to `DSP_CheckMailTo'
c:/devkitPro/libogc/lib/wii\libasnd.a(asndlib.o): In function `audio_dma_callback':
asndlib.c:(.text.audio_dma_callback+0x2c): undefined reference to `AUDIO_StopDMA'
asndlib.c:(.text.audio_dma_callback+0x48): undefined reference to `AUDIO_InitDMA'
asndlib.c:(.text.audio_dma_callback+0xb0): undefined reference to `AUDIO_StartDMA'
asndlib.c:(.text.audio_dma_callback+0x27c): undefined reference to `DSP_SendMailTo'
asndlib.c:(.text.audio_dma_callback+0x280): undefined reference to `DSP_CheckMailTo'
c:/devkitPro/libogc/lib/wii\libasnd.a(asndlib.o): In function `ASND_Init':
asndlib.c:(.text.ASND_Init+0x1c): undefined reference to `DSP_Init'
asndlib.c:(.text.ASND_Init+0x24): undefined reference to `AUDIO_Init'
asndlib.c:(.text.ASND_Init+0x2c): undefined reference to `AUDIO_SetDSPSampleRate'
asndlib.c:(.text.ASND_Init+0x184): undefined reference to `DSP_AddTask'
asndlib.c:(.text.ASND_Init+0x190): undefined reference to `AUDIO_RegisterDMACallback'
asndlib.c:(.text.ASND_Init+0x1a4): undefined reference to `AUDIO_InitDMA'
asndlib.c:(.text.ASND_Init+0x1a8): undefined reference to `AUDIO_StartDMA'
collect2: ld returned 1 exit status
make[1]: *** [/c/projects/combat4/combat4.elf] Error 1
"make": *** [build] Error 2
Didn't have any problems at all before, when I used the standalone Sndlib (not included in libogc). I've included the '-lasnd' parameter to LIBS in my Makefile..

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Problem with libasnd after fresh install.

Post by WinterMute » Tue Jan 27, 2009 6:43 am

Order of linking matters, looks like you have -logc -lasnd instead of -lasnd -logc.
Help keep devkitPro toolchains free, Donate today

Personal Blog

spiffen
Posts: 3
Joined: Tue Jan 27, 2009 12:03 am

Re: Problem with libasnd after fresh install.

Post by spiffen » Tue Jan 27, 2009 9:34 am

Ofcourse I had :).. Didn't know that the order mattered.. Changed it and now it compiles nicely.. Thank you for the fast reply!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest