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 > help me

#104072 - mafia1ft - Tue Sep 26, 2006 10:53 am

ok i have spent the last 3 days following lots of different guides and am still getting the same error

Code:
Rowan@MCLARNEN-XP ~/projects2/demo1
$ make
arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I/c/devkitPro/libnds/include -DARM7 -c arm7_main.cpp -oarm7_main.o
make: arm-elf-g++: Command not found
make: *** [arm7_main.o] Error 127

i think it may be some thing to do with my libnds folder
here is my folder lay out
C
--cygwin
----usr
------DevkitPro
--------DevkitARM
--------ndslib

what other folder should there be and about what size should the ndslib folder be
thx mafia1ft

#104073 - keldon - Tue Sep 26, 2006 10:56 am

I am guessing you have the latest devkit r19. The arm-elf-g++ command has changed; couldn't tell you off the top of my head, but go to the site and it will tell you. Also the devkit has a makefile that you can use as a template somewhere.

#104074 - mafia1ft - Tue Sep 26, 2006 11:07 am

which versions of devkitpro devkitARM and ndslib are the best

#104075 - keldon - Tue Sep 26, 2006 11:19 am

The most recent versions are usually the 'best'.

How new are you to programming? How much experience have you had? You might want to look into the beginners FAQ and start doing a bit of coding in windows, or whatever OS you are using first.

#104082 - mafia1ft - Tue Sep 26, 2006 11:59 am

i'm not new i have made homebrews for the psp but i just got my ds lite and want to make homebrews for it (setting up this for the psp was so easy compaired to this)

#104117 - tepples - Tue Sep 26, 2006 6:01 pm

Change all instances of arm-elf- to arm-eabi- and you should be set.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#104183 - mafia1ft - Tue Sep 26, 2006 11:44 pm

would someone be able to zip a copy of there libnds folder because mine keeps saying that files arn't there

#104251 - gmiller - Wed Sep 27, 2006 1:23 pm

mafia1ft wrote:
would someone be able to zip a copy of there libnds folder because mine keeps saying that files arn't there


If they are there but the tools are complaining that it can't find them then the problem is in the way you are using the tools not the files.

If the problem is in the compiler not finding a header file then you need to add -I/folder/where/the/headers/are to the compiler command or to the CFLAGS definition in your make file. This option -I adds additional locations to search for header files.

If the problem is that the linking command can't find a library you need to add a -L/folder/where/the/library/is to your linking command prior to the -lnameWithoutLibPrefix portion of the command string or add it to the LDFLAGS definition in your make file. This option -L adds a additional location for the link phase to LOOK for library files.