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 > Problem Linking-> gba_crt0.o: In function 'start_vector'

#56010 - Guenhwyvar - Wed Oct 05, 2005 1:41 pm

Hi all, in first place sorry, for me bad writer english. I have downloaded, the last version of Devkitpro (1.1.0). I have proven the examples including, and they working. Soon I have proven to look for more examples, and have problems to make work them. I use the makefile, that comes in the example template for GBA, and obtain the following error:

Code:
C:\Practicas\GBA\cavesAndBatz\source>make
linking cartridge
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-elf/4.0.1/../../../../arm-elf/lib/thum
b/interwork/gba_crt0.o: In function `start_vector':
gba_crt0.s:(.init+0x220): undefined reference to `main'
make[1]: *** [/c/Practicas/GBA/cavesAndBatz/source/source.elf] Error 1
make: *** [build] Error 2


Me too, try the examples of web : http://www.drunkencoders.com/index.php?system_id=2&page=Tutorials
(Great Web)

If I use the build.bat include in the example (setting routes), it compile. But if I use the file makefile, i have idem error.

However makefile in others examples it works, what is the problem??

Thank you very much, by your attention. Again sorry by my writing