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.

Beginners > Problems with compiling

#21326 - ferentix - Thu May 27, 2004 9:43 pm

Hi, i'm a complete newbie to the GBAdevving, and I am having bad problems already, before i've even started coding. I downloaded Devkitadv, and started to follow the tutorial at the Pern project. I am using the "Tutor.c" file from there to test the compiler etc. as it says, and that comes with it's own batch "make" file, below:

Code:
path=C:\devkitadv\bin


gcc  -o test.elf tutor.c  -lm

objcopy -O binary test.elf test.bin

But when I run this, I get the following screen:

Code:
path=C:\devkitadv\bin


C:\devkitadv>path=C:\devkitadv\bin

C:\devkitadv>
C:\devkitadv>
C:\devkitadv>gcc  -o tutor.c  -lm
/cygdrive/c/DEVKIT~1/BIN/arm-agb-elf-ld: cannot open crt0.o: No such file or dir
ectory
collect2: ld returned 1 exit status

C:\devkitadv>
C:\devkitadv>objcopy -O binary tutor.elf test.bin
/cygdrive/c/DEVKIT~1/BIN/OBJCOPY: tutor.elf: No such file or directory

C:\devkitadv>


I keep getting this, despite the fact I have followed all the instructions so far, and in fact I have checked other tutorials on using Devkitadv, and in using their test code and make files have come up with similar failures. Does anyone know what is going on? Please help!

#21332 - DiscoStew - Thu May 27, 2004 11:06 pm

From the look of it, you are missing the crt0.o file.
_________________
DS - It's all about DiscoStew

#21351 - tepples - Fri May 28, 2004 3:28 am

Are you using DevKit Advance R4? If so, upgrade to either DKA R5 beta 3 or devkitARM.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.