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 > makefile - linking afm

#30245 - dj-ceejay - Mon Nov 29, 2004 8:21 pm

Hi. I've searched this forum and the internet but can't find the answer to my problem.

I have a makefile for my program. I have set it to compile a .mod file to use in AFM (hitmen-console.org). When making the .elf file the compiler spits this out:
Quote:

gcc -mthumb -mthumb-interwork -o 3inarow.elf main.o modfile.o C:/devkitadv/lib/l
ibafm.a
/cygdrive/c/devkitadv/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-agb-e
lf/bin/ld: Warning: modfile.o does not support interworking, whereas 3inarow.elf does


I can post the makefile if it would help.
modfile.o is built:
Quote:

modfile.o: zak.mod
$(LD) -A elf32-littlearm --format binary --oformat elf32-littlearm zak.mod -o modfile.o -r -EL -T bin2rodata.x


I'm entering the 2004mbit compo so im currently rushing to get our game finished.

I hope someone can help me :)
_________________
Fruit Machine Games:
http://www.fmsoftware.info/