#9769 - Omega81 - Sun Aug 17, 2003 4:05 am
Quote: |
[root@localhost root]# gba-gcc -o test.elf test.c /DevKitAdv/bin/../lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/bin/ld: section .iwram [080003f8 -> 080004bf] overlaps section .init [080003e4 -> 080003ff] /DevKitAdv/bin/../lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/lib/crt0.o: In function `jump_intr': /DevKitAdv/bin/../lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/lib/crt0.o(.iwram+0xc4): undefined reference to `IntrTable' collect2: ld returned 1 exit status [root@localhost root]# |
when I try to compile a simple program I get this error. any Ideas as to why this is happening. The code is give below.
Code: |
#include <stdio.h>
#include "GameBoyAdv.h" #define RGB(r,g,b) (r+(g<<5)+(b<<10)) //Macro to build a color from its parts int color,i,x,y; u16* Vram = (u16*)VideoBuffer; int main() { REG_DISPCNT = (0x0400|0x03); // select mode 3 with bacground 2 bitmap backgoun d x = 10; y = 20; //for (i=0; i< 2000; i++) //{ Vram[x+y*240] = RGB(31,31,31); // } return 0; } |
thank in advanced guys/gals[/code][/quote]