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 > Complier error with Nds

#165119 - Matty_Alan - Wed Dec 10, 2008 7:10 am

Hey; i'm a n00b programer with C and iv'e been trying to get into some Nds but im having trouble compiling example programs;
I have DevKitPro fully installed along with PAlib.

Anyway the following error(s) comes up when I compile a project when i compile Nds Roms, however I can compile Gba roms fine.
Any help would be great because iv'e been looking all week for tutorials that might help me fix it and nothing has been any help yet.

cheers


Quote:

arm-eabi-g++ -g -mthumb-interwork -mno-fpu -L/c/devkitPro/PAlib/lib -specs=ds_arm9.specs main.o -L/c/devkitPro/PAlib/lib -lpa9 -L/c/devkitPro/libnds/lib -lfat -lnds9 -ldswifi9 -o build.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/lib/ds_arm9_crt0.o: In function `CIDLoop':
ds_arm9_crt0.s:(.init+0x2ac): undefined reference to `initSystem'
collect2: ld returned 1 exit status
make[1]: *** [/c/Test/Test.elf] Error 1
make: *** [build] Error 2

_________________
Prime Steak, A steak that is divisible by itself and 1.

#165122 - chishm - Wed Dec 10, 2008 9:04 am

PAlib overwrote your libnds installation, so you have an old version of libnds with a new version of DevkitARM. This will not work, as you've discovered. I don't know of any way to make PAlib co-operate.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com

#165128 - Matty_Alan - Wed Dec 10, 2008 4:40 pm

Cool, I replaced the old libnds with a new one and it works fine now; well mostly.

Thanks a million man, now i can start learning this stuff... all nighter here I come
_________________
Prime Steak, A steak that is divisible by itself and 1.

#165135 - Kyoufu Kawa - Wed Dec 10, 2008 8:23 pm

Interjecting a stupid joke:

I read the thread title and the first thing I thought was "Cannot comply. Syntax error" in a voice like EVA from Command & Conquer.