gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Audio > AAS (Again!)

#28526 - Datch - Tue Nov 02, 2004 5:37 am

Hi! I'm trying to set up AAS with my current project and I'm having some problems. I followed very closely the previous thread but I don't think my problem is related. I even tryed the make file provided by jd but the result seems to be worst.

With my make file it's not too bad. I'm able to compile without any errors, the AAS logo even shows up. Trouble starts when I try to do the AAS_SetConfig() like in the example provided. Here's my make file :
Code:
path=C:\devkitadv\bin

conv2aas AAS_Data

gcc  -marm -mthumb-interwork -mlong-calls -LLibAAS -O3 -o display.elf display.c libAAS.a

objcopy -O binary display.elf display.gba
When I uncomment the AAS_SetConfig() line, I get a very ugly :
Quote:
C:\gbaprog\alpha>gcc -marm -mthumb-interwork -mlong-calls -LLibAAS -O3 -o display.elf display.c libAAS.a
libAAS.a(AAS_Main.o): In function `AAS_DoConfig':
AAS_Main.o(.text+0x13b8): undefined reference to `AAS_data_v109'
libAAS.a(AAS_MOD.o): In function `AAS_MOD_SetSongPos':
AAS_MOD.o(.text+0xbc): undefined reference to `AAS_Sequence'
AAS_MOD.o(.text+0xc8): undefined reference to `AAS_PatternData'
libAAS.a(AAS_MOD.o): In function `AAS_MOD_Play':
AAS_MOD.o(.text+0x28c): undefined reference to `AAS_DATA_NUM_MODS'
AAS_MOD.o(.text+0x290): undefined reference to `AAS_NumChans'
AAS_MOD.o(.text+0x2e8): undefined reference to `AAS_Sequence'
AAS_MOD.o(.text+0x2ec): undefined reference to `AAS_PatternData'
libAAS.a(AAS_MOD.o): In function `AAS_MOD_Interrupt':
AAS_MOD.o(.text+0x538): undefined reference to `AAS_ModSamples'
AAS_MOD.o(.text+0x53c): undefined reference to `AAS_SampleData'
AAS_MOD.o(.text+0x674): undefined reference to `AAS_ModSamples'
AAS_MOD.o(.text+0x920): undefined reference to `AAS_ModSamples'
AAS_MOD.o(.text+0xaf8): undefined reference to `AAS_Sequence'
AAS_MOD.o(.text+0xb04): undefined reference to `AAS_PatternData'
AAS_MOD.o(.text+0xc18): undefined reference to `AAS_Sequence'
AAS_MOD.o(.text+0xc24): undefined reference to `AAS_PatternData'
AAS_MOD.o(.text+0xdac): undefined reference to `AAS_Sequence'
AAS_MOD.o(.text+0xdfc): undefined reference to `AAS_PatternData'
AAS_MOD.o(.text+0x118c): undefined reference to `AAS_RestartPos'
AAS_MOD.o(.text+0x11cc): undefined reference to `AAS_Sequence'
AAS_MOD.o(.text+0x11d0): undefined reference to `AAS_PatternData'
AAS_MOD.o(.text+0x1254): undefined reference to `AAS_SampleData'
libAAS.a(AAS_MOD.o): In function `AAS_MOD_QueueSongPos':
AAS_MOD.o(.text+0x12c0): undefined reference to `AAS_Sequence'
collect2: ld returned 1 exit status
I need a hint please! :)
_________________
Visit SR-388 now and get a 40% discount!

#28532 - kashiwa - Tue Nov 02, 2004 11:29 am

You need linking AAS_Data.o.
Code:

conv2aas AAS_Data
gas -o AAS_Data.o AAS_Data.s
gcc -marm -mthumb-interwork -mlong-calls -LLibAAS -O3 -o display.elf AAS_Data.o display.c libAAS.a
objcopy -O binary display.elf display.gba

#28587 - Datch - Wed Nov 03, 2004 1:36 am

Thanks a lot, it works now. :)

Just for the record, I also had to replace the old crt0.o in my devkitarm directory with the one provided with AAS and to change my main() entry function by AgbMain().
_________________
Visit SR-388 now and get a 40% discount!