I can't get it to work on my codeblocks IDE (using ubuntu linux)... I don't get it, I followed a couple of guides but my code won't compile.. I'm afraid I'm missing some linked libraries or something but.. can somebody please help me? my code is:
CODE#define ARM9
#include
int main() {
ÂÂÂÂ/*ÂÂTurn on the 2D graphics core. */
ÂÂÂÂ//powerOn(POWER_ALL_2D);
ÂÂÂÂreturn 0;
}
and when I try to build it says:
what is the problem? I really don't get it.. I know my code does nothing, but still wtf is going on? is there a different way I should build it? How do I make it a .nds file? I tried looking on google and on a couple of forums but I could get no answer to my questions, hopefully someone here will help me
edit:
ps: if I try to uncomment that powerOn line I get this:
CODE#define ARM9
#include
int main() {
ÂÂÂÂ/*ÂÂTurn on the 2D graphics core. */
ÂÂÂÂ//powerOn(POWER_ALL_2D);
ÂÂÂÂreturn 0;
}
and when I try to build it says:
Code:
-------------- Build: Debug in Test ---------------
Compiling: main.cpp
Linking console executable: bin/Debug/Test
/usr/local/lib/devkitpro_r24/devkitARM/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/bin/ld: /usr/local/lib/devkitpro_r24/devkitARM/arm-eabi/lib/be/libc.a(lib_a-errno.o): compiled for a big endian system and target is little endian
/usr/local/lib/devkitpro_r24/devkitARM/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/bin/ld: failed to merge target specific data of file /usr/local/lib/devkitpro_r24/devkitARM/arm-eabi/lib/be/libc.a(lib_a-errno.o)
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
what is the problem? I really don't get it.. I know my code does nothing, but still wtf is going on? is there a different way I should build it? How do I make it a .nds file? I tried looking on google and on a couple of forums but I could get no answer to my questions, hopefully someone here will help me
edit:
ps: if I try to uncomment that powerOn line I get this:
Code:
/usr/local/lib/devkitpro_r24/libnds/lib/libnds9.a(interrupts.o)||In function `irqInit':|
/usr/local/lib/devkitpro_r24/libbk/arm9/../source/common/interrupts.c|82|undefined reference to `__irq_vector'|
/usr/local/lib/devkitpro_r24/libnds/lib/libnds9.a(interrupts.o)||In function `irqInitHandler':|
/usr/local/lib/devkitpro_r24/libbk/arm9/../source/common/interrupts.c|95|undefined reference to `__irq_vector'|
/usr/local/lib/devkitpro_r24/libnds/lib/libnds9.a(interruptDispatcher.o)||In function `IntrRet':|
/usr/local/lib/devkitpro_r24/libbk/arm9/../source/common/interruptDispatcher.s|116|undefined reference to `__irq_flags'|
||=== Build finished: 3 errors, 0 warnings ===|