#167848 - Johnny(TM) - Tue Mar 31, 2009 1:28 pm
I'm trying to set up devkitPro, so I can compile codes in Dev-C++ for DS. I have installed everything, also used the help of the manual. In the project options, I added to the linker the following lines:
-lmm9
-lnds9
Set up the lib directory:
C:\_DS_\devkitPro\libnds\lib
And the include directories:
C:\_DS_\devkitPro\libnds\include
C:\_DS_\devkitPro\devkitARM\arm-eabi\include
Finally, here's the code:
And the error the compiler returned was quite surprising:
skipping incompatible C:/_DS_/devkitPro/libnds/lib/libmm9.a when searching for -lmm9
If I remove the files from linker, here's the result:
[Linker error] undefined reference to `swiWaitForVBlank'
[Linker error] undefined reference to `glGlobalData'
I'm pretty sure the problem is in the linker, did anyone else tried to set up this in devcpp?
-lmm9
-lnds9
Set up the lib directory:
C:\_DS_\devkitPro\libnds\lib
And the include directories:
C:\_DS_\devkitPro\libnds\include
C:\_DS_\devkitPro\devkitARM\arm-eabi\include
Finally, here's the code:
Code: |
#define ARM9
#include <nds.h> int main() { swiWaitForVBlank(); } |
And the error the compiler returned was quite surprising:
skipping incompatible C:/_DS_/devkitPro/libnds/lib/libmm9.a when searching for -lmm9
If I remove the files from linker, here's the result:
[Linker error] undefined reference to `swiWaitForVBlank'
[Linker error] undefined reference to `glGlobalData'
I'm pretty sure the problem is in the linker, did anyone else tried to set up this in devcpp?