Danke aber geht trotzdem nicht.. moment ich post mal den Quellcode und die fehler
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
$Id: main.cpp,v1.0 Atze96 inc.:D Exp $
Hello World !
-- dovoto
---------------------------------------------------------------------------------*/
#include <nds.h>
#include <stdio.h>
volatile int frame = 0;
//---------------------------------------------------------------------------------
void Vblank() {
//---------------------------------------------------------------------------------
frame++;
}
//---------------------------------------------------------------------------------
int main(void) {
//---------------------------------------------------------------------------------
touchPosition touchXY;
irqSet(IRQ_VBLANK, Vblank);
consoleDemoInit();
iprintf("Hallo DS, wie gehts... erste Homebrew");
iprintf("LolDS");
iprintf("atze2010");
iprintf("Hombrewscene 10");
iprintf("Homebrew to World!");
while(1) {
swiWaitForVBlank();
touchRead(&touchXY);
// print at using ansi escape sequence \x1b[line;columnH
iprintf("\x1b[10;0HFrame = %d",frame);
iprintf("\x1b[16;0HTouch x = %04X, %04X\n", touchXY.rawx, touchXY.px);
iprintf("Touch y = %04X, %04X\n", touchXY.rawy, touchXY.py);
while(1) {
PAD_ScanPads();
if(Pad.Held.Start) PA_PowerOff();
PA_WaitForVBL();
}
return 0;
}
|
und das sind die Fehlermeldungen
> "make"
main.cpp
arm-eabi-g++ -MMD -MP -MF /c/devkitPro/examples/nds/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/c/devkitPro/examples/nds/hello_world/include -I/c/devkitPro/examples/nds/hello_world/build -I/c/devkitPro/libnds/include -I/c/devkitPro/libnds/include -I/c/devkitPro/examples/nds/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /c/devkitPro/examples/nds/hello_world/source/main.cpp -o main.o
c:/devkitPro/examples/nds/hello_world/source/main.cpp: In function 'int main()':
c:/devkitPro/examples/nds/hello_world/source/main.cpp:52:15: error: 'PAD_ScanPads' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:54:8: error: 'Pad' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:54:36: error: 'PA_PowerOff' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:56:19: error: 'PA_WaitForVBL' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:59:1: error: expected '}' at end of input
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01