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 > DISP_SR out of scope

#90034 - Azenris - Wed Jun 28, 2006 12:19 am

Tried to look through the forums (noticed alot of compiling error threads) however none i could see with the same problem: i keep getting this

Code:

H:\examples\demo1>make
arm-elf-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm7.specs arm7_main.o -L/c/
devkitPro/libnds/lib -lnds7 -oarm7.elf
c:/devkitPro/libnds/lib\libnds7.a: could not read symbols: File format not recog
nized
collect2: ld returned 1 exit status
make: *** [arm7.elf] Error 1

H:\examples\demo1>


the thing it seems to have problems regonizing came with the latest devkitpro, anything i've over looked? dying to get onto the DS, bored of GBA now ;D

ty


Last edited by Azenris on Wed Jun 28, 2006 2:31 pm; edited 1 time in total

#90037 - wintermute - Wed Jun 28, 2006 12:55 am

http://forum.gbadev.org/viewtopic.php?p=85784#85784
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#90039 - Azenris - Wed Jun 28, 2006 12:58 am

My bad, thankyou :p

edit: after absoluty ages i've been trying to get a compiled file, im useless at that stuff, im soo happy now! I can actually start doing something more fun

EDIT:

Thought id just make a post within a thread i already have. When im compiling something

arm9_main.cpp: In function 'void InitInterruptHandler()':
arm9_main.cpp:51: error: 'DISP_SR' was not declared in this scope
make: *** [arm9_main.o] Error 1

I have all the includes and all the other defines are fine, just this one.

#91505 - wintermute - Fri Jul 07, 2006 4:52 pm

You're probably better off porting the interrupt code to the libnds irq API instead, some aspects of interrupt handling have changed and a lot of code which installs it's own handler is unfortunately broken.

I'm slowly moving the register defines to a REG_ prefix with the no$ spec naming scheme. DISP_SR is now REG_DISPSTAT although the old name is available in registers_alt.h.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog