yaustar wrote: |
it didn't like O0, it just popped up with errors that I really do not have a clue about.... |
Code: |
C:\Documents and Settings\yaustar_8p\My Documents\My Project\Code\BG_DMA014>path =c:\DevkitAdv\old\bin C:\Documents and Settings\yaustar_8p\My Documents\My Project\Code\BG_DMA014>g++ -g -O0 main.elf main.cpp bg.cpp -lm main.elf: In function `__boot_method': main.elf(.text+0xc4): multiple definition of `__boot_method' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-a gb-elf/lib/crt0.o(.text+0xc4): first defined here main.elf: In function `__FarFunction': main.elf(.text+0x17a): multiple definition of `__FarProcedure' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-a gb-elf/lib/crt0.o(.text+0x17a): first defined here main.elf: In function `__slave_number': main.elf(.text+0xc5): multiple definition of `__slave_number' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-a gb-elf/lib/crt0.o(.text+0xc5): first defined here main.elf(.ctors+0x0): multiple definition of `__CTOR_LIST__' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/crtbegin.o(.ctors +0x0): first defined here main.elf: In function `_start': main.elf(.text+0x0): multiple definition of `_start' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-a gb-elf/lib/crt0.o(.text+0x0): first defined here main.elf: In function `start_vector': main.elf(.text+0xe0): multiple definition of `start_vector' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-a gb-elf/lib/crt0.o(.text+0xe0): first defined here main.elf(.dtors+0x0): multiple definition of `__DTOR_LIST__' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/crtbegin.o(.dtors +0x0): first defined here main.elf(.eh_frame+0x0): multiple definition of `__EH_FRAME_BEGIN__' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/crtbegin.o(.eh_fr ame+0x0): first defined here main.elf: In function `__FarFunction': main.elf(.text+0x17a): multiple definition of `__FarFunction' /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-a gb-elf/lib/crt0.o(.text+0x17a): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `main': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:84: multiple definition of `KEYS' main.elf(.data+0x4): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `main': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:84: multiple definition of `OAM' main.elf(.data+0x8): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `main': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:84: multiple definition of `var_snakeHeight' main.elf(.data+0xc): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `main': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:84: multiple definition of `main' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:84: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_initia lizeSprites()': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:325: multiple definition of `func_initializeSprites()' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:325: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_getInp ut(short&, short&)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:863: multiple definition of `func_getInput(short&, short&)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:863: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_guardM ove()': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:706: multiple definition of `func_guardMove()' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:706: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_checkO verlay(short, short, short)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:680: multiple definition of `func_checkOverlay(short, short, short )' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:680: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_moveSp rite(tagOAMEntry*, int, int)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:1020: multiple definition of `func_moveSprite(tagOAMEntry*, int, i nt)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:1020: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_drawRa dar(short, short, unsigned char)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:352: multiple definition of `func_drawRadar(short, short, unsigned char)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:352: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_cColli sionSnake(short&, short&, unsigned char)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:471: multiple definition of `str_snakeSprite' main.elf(.bss+0x1404): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_cColli sionSnake(short&, short&, unsigned char)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:471: multiple definition of `str_guardSprite' main.elf(.bss+0x1410): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `main': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:84: multiple definition of `sprites' main.elf(.bss+0x4): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `main': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:234: multiple definition of `radar' main.elf(.bss+0x404): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_moveEn vir(short&, short&, short, short)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:336: multiple definition of `func_moveEnvir(short&, short&, short, short)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:336: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_cColli sionSnake(short&, short&, unsigned char)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:422: multiple definition of `func_cCollisionSnake(short&, short&, unsigned char)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:422: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/cc7eoFaT.o: In function `func_cColli sionGuard(short, short, short&, short&, unsigned char)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/main.cpp:551: multiple definition of `func_cCollisionGuard(short, short, sh ort&, short&, unsigned char)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/main.cpp:551: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/ccF6Xog5.o: In function `EnableBackg round(Bg*)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/bg.cpp:12: multiple definition of `SIN' main.elf(.data+0x10): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/ccF6Xog5.o(.data+0x5a0): multiple de finition of `COS' main.elf(.data+0x5b0): first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/ccF6Xog5.o: In function `EnableBackg round(Bg*)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/bg.cpp:12: multiple definition of `EnableBackground(Bg*)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/bg.cpp:12: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/ccF6Xog5.o: In function `UpdateBackg round(Bg*)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/bg.cpp:51: multiple definition of `UpdateBackground(Bg*)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/bg.cpp:51: first defined here /cygdrive/c/DOCUME~1/YAUSTA~1/LOCALS~1/Temp/ccF6Xog5.o: In function `RotateBackg round(Bg*, int, int, int, long)': /cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/Code/BG_DM A014/bg.cpp:101: multiple definition of `RotateBackground(Bg*, int, int, int, lo ng)' main.elf:/cygdrive/c/Documents and Settings/yaustar_8p/My Documents/My Project/C ode/BG_DMA014/bg.cpp:101: first defined here /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/crtend.o(.ctors+0 x0): multiple definition of `__CTOR_END__' main.elf(.ctors+0x4): first defined here /cygdrive/c/DevkitAdv/old/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/crtend.o(.dtors+0 x0): multiple definition of `__DTOR_END__' main.elf(.dtors+0x4): first defined here collect2: ld returned 1 exit status C:\Documents and Settings\yaustar_8p\My Documents\My Project\Code\BG_DMA014>objc opy -O binary main.elf main.gba C:\Documents and Settings\yaustar_8p\My Documents\My Project\Code\BG_DMA014>paus e Press any key to continue . . . |