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.

Coding > BgAffineSet BIOS function help

#11449 - NoMis - Tue Oct 07, 2003 5:31 pm

I'm trying to use the BgAffineSet function of the bios. I made an s file and put the following into it:

.global BgAffineSet
.arm
.align 4
BgAffineSet:
swi 0xE0000
bx lr

In my headerfile i put an extern function, like this:

extern void BgAffineSet(void*, void*, u32);

Then i defined the structure BgAffineSource and BgAffineDest. When i try to compile the whole thing it says:

main.o: In function `main':
main.o(.text+0x16e): undefined reference to `BgAffineSet(void*, void*, unsigned long)'


NoMis

#11451 - NoMis - Tue Oct 07, 2003 5:49 pm

i guess i solved that problem myself but now it says:

D:\dev\Gba\devkitadv\bin\..\lib\gcc-lib\arm-agb-elf\3.2.2\..\..\..\..\arm-agb-elf\lib\interwork\libc.a(agbmain.o): In function `AgbMain':
../../../../../../../gcc-3.2.2/newlib/libc/sys/agb/agbmain.c:25: undefined reference to `main'

help!!

NoMis