12-24-2012 03:04 PM
Hi all,
I got this error when build sample app Gamepad :
/Users/MyMac/BB10/Gamepad/main.c:322:34: error: 'SCREEN_DPAD_UP_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:322:34: note: each undeclared identifier is reported only once for each function it appears in /Users/MyMac/BB10/Gamepad/main.c:331:34: error: 'SCREEN_DPAD_DOWN_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:340:34: error: 'SCREEN_DPAD_LEFT_GAME_BUTTON' undeclared (first use in this function) make[2]: Leaving directory `/Users/MyMac/BB10/Gamepad/arm/o.le-v7' make[1]: Leaving directory `/Users/MyMac/BB10/Gamepad/arm' /Users/MyMac/BB10/Gamepad/main.c:349:34: error: 'SCREEN_DPAD_RIGHT_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:355:34: error: 'SCREEN_A_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:360:34: error: 'SCREEN_B_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:365:34: error: 'SCREEN_X_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:370:34: error: 'SCREEN_Y_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:376:34: error: 'SCREEN_L1_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:381:34: error: 'SCREEN_R1_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:387:35: error: 'SCREEN_MENU1_GAME_BUTTON' undeclared (first use in this function) /Users/MyMac/BB10/Gamepad/main.c:392:35: error: 'SCREEN_MENU2_GAME_BUTTON' undeclared (first use in this function) cc: /Applications/bbndk/host_10_0_9_284/darwin/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1 error 1 make[2]: *** [main.o] Error 1 make[1]: *** [all] Error 2 make: *** [all] Error 2
Appreciate any help ![]()
Thanks.
Solved! Go to Solution.
12-24-2012 04:13 PM
you are missing some #include lines in your code. Where is this sample?
12-26-2012 12:28 PM
i got this sample from git repository.
which one i'm missing ? cause i just download, import to project, and then build it, and got the errors ![]()
12-26-2012 06:21 PM
Make sure you use the latest NDK (10.0.9.1673). You'll get these errors with previous versions of NDK.
12-26-2012 09:24 PM
Great BGmot,
That's the problem, i'm not choosing the right version to built for ![]()
Thanks a lot ![]()