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 > arm7main compile error

#58259 - zeekpunk - Sat Oct 22, 2005 12:14 am

im following the by Chris Double(http://www.double.co.nz/nintendo_ds/nds_develop1.html), im still on the first page and I get this compile error when making demo1.nds. I've not modified any files from the demo1 folder other than deleting the .nds and .nds.gba files


Code:
D:\games\dsdev\DevKitPro\examples\demo1>make
arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ff
ast-math -mthumb-interwork -I/d/games/dsdev/devkitPRO/libnds/include -DARM7 -c a
rm7_main.cpp -oarm7_main.o
arm7_main.cpp: In function 'void InterruptHandler()':
arm7_main.cpp:22: error: 'IF' was not declared in this scope
arm7_main.cpp:76: error: 'IF' was not declared in this scope
arm7_main.cpp: In function 'int main(int, char**)':
arm7_main.cpp:92: error: 'IME' was not declared in this scope
arm7_main.cpp:94: error: 'IE' was not declared in this scope
arm7_main.cpp:95: error: 'IF' was not declared in this scope
make: *** [arm7_main.o] Error 1

any ideas?

#58262 - agentq - Sat Oct 22, 2005 12:40 am

Yeah, they have changed the names of some of the registers in DevkitARM. Replace IE with REG_IE, IF with REG_IF, and IME with REG_IME.

There will probably be others too. You may have to go and look stuff up on DSTek to find out what the new names should be.

I've been doing this all afternoon. :-(

#58263 - zeekpunk - Sat Oct 22, 2005 12:49 am

that worked thanks. cant wait to get my hands dirty with all this, I used to make mods with unrealscript so this C/C++ is familiar but new to me mostly.