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.

DS development > Problem Compiling arm7 code

#42071 - Mahjong - Thu May 05, 2005 12:01 pm

Hello I am trying to use the templateBoth in the ndslib distribution but I can't compile it:

Code:
built ... arm7.bin
d:/ndsdev/devkitARM/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib/interwo
rk/ds_arm7_crt0.o(.init+0x164): In function `CIDLoop':
: undefined reference to `main'
collect2: ld returned 1 exit status


Any help?

#42087 - josath - Thu May 05, 2005 6:53 pm

the template is just a template....you need to add your own source code for it to compile. Otherwise it has nothing to compile.

#42090 - dovoto - Thu May 05, 2005 7:06 pm

Did i forget a main.c ? I am not too bright. will fix it soon
_________________
www.drunkencoders.com

#42091 - LOUD NOISES - Thu May 05, 2005 7:32 pm

I've been using templateBoth as the template for all of my projects and it compiles fine, dovoto.

#42093 - Mahjong - Thu May 05, 2005 8:43 pm

Sorry, the problem was the name of the arm7/source directory.

Another problem, the new version of ndstool does not work for me, I am using an old version.