Advertisement
Prokas

Error "undeclared here"

Mar 3rd, 2019
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.75 KB | None | 0 0
  1. -------- begin --------
  2. avr-gcc.exe (AVR_8_bit_GNU_Toolchain_3.6.1_1752) 5.4.0
  3. Copyright (C) 2015 Free Software Foundation, Inc.
  4. This is free software; see the source for copying conditions. There is NO
  5. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  6.  
  7.  
  8. mkdir -p obj_gh60_lufa
  9. Compiling C: keymap_poker.c
  10. avr-gcc -c -mmcu=at90usb1287 -gdwarf-2 -DF_CPU=16000000UL -DINTERRUPT_CONTROL_ENDPOINT -DBOOTLOADER_SIZE=4096 -DF_USB=16000000UL -DARCH=ARCH_AVR8 -DUSB_DEVICE_ONLY -DUSE_FLASH_DESCRIPTORS -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DFIXED_NUM_CONFIGURATIONS=1 -DPROTOCOL_LUFA -DBOOTMAGIC_ENABLE -DMOUSEKEY_ENABLE -DMOUSE_ENABLE -DEXTRAKEY_ENABLE -DCONSOLE_ENABLE -DCOMMAND_ENABLE -DVERSION=unknown -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=obj_gh60_lufa/keymap_poker.lst -I. -I../../tmk_core -I../../tmk_core/protocol/lufa -I../../tmk_core/protocol/lufa/LUFA-git -I../../tmk_core/common -std=gnu99 -include config.h -MMD -MP -MF .dep/obj_gh60_lufa_keymap_poker.o.d keymap_poker.c -o obj_gh60_lufa/keymap_poker.o
  11. In file included from keymap_poker.c:1:0:
  12. keymap_common.h:42:147: error: 'KC_KC_BSPC' undeclared here (not in a function)
  13. { KC_##K00, KC_##K01, KC_##K02, KC_##K03, KC_##K04, KC_##K05, KC_##K06, KC_##K07, KC_##K08, KC_##K09, KC_##K0A, KC_##K0B, KC_##K0C, KC_##K0D, KC_##K0E }, \
  14. ^
  15. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  16. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  17. ^
  18. keymap_common.h:43:147: error: 'KC_KC_MINS' undeclared here (not in a function)
  19. { KC_##K10, KC_##K11, KC_##K12, KC_##K13, KC_##K14, KC_##K15, KC_##K16, KC_##K17, KC_##K18, KC_##K19, KC_##K1A, KC_##K1B, KC_##K1C, KC_##K1D, KC_##K1E }, \
  20. ^
  21. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  22. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  23. ^
  24. keymap_common.h:44:137: error: 'KC_KC_SCLN' undeclared here (not in a function)
  25. { KC_##K20, KC_##K21, KC_##K22, KC_##K23, KC_##K24, KC_##K25, KC_##K26, KC_##K27, KC_##K28, KC_##K29, KC_##K2A, KC_##K2B, KC_##K2C, KC_##K2D, KC_##K2E }, \
  26. ^
  27. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  28. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  29. ^
  30. keymap_common.h:44:147: error: 'KC_KC_QUOTE' undeclared here (not in a function)
  31. { KC_##K20, KC_##K21, KC_##K22, KC_##K23, KC_##K24, KC_##K25, KC_##K26, KC_##K27, KC_##K28, KC_##K29, KC_##K2A, KC_##K2B, KC_##K2C, KC_##K2D, KC_##K2E }, \
  32. ^
  33. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  34. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  35. ^
  36. keymap_common.h:45:7: error: 'KC_KC_LCTL' undeclared here (not in a function)
  37. { KC_##K30, KC_##K31, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_NO, KC_##K37, KC_NO, KC_##K39, KC_##K3A, KC_##K3B, KC_##K3C, KC_##K3D, KC_##K3E }, \
  38. ^
  39. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  40. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  41. ^
  42. keymap_common.h:45:117: error: 'KC_KC_COMM' undeclared here (not in a function)
  43. { KC_##K30, KC_##K31, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_NO, KC_##K37, KC_NO, KC_##K39, KC_##K3A, KC_##K3B, KC_##K3C, KC_##K3D, KC_##K3E }, \
  44. ^
  45. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  46. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  47. ^
  48. keymap_common.h:45:127: error: 'KC_KC_DOT' undeclared here (not in a function)
  49. { KC_##K30, KC_##K31, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_NO, KC_##K37, KC_NO, KC_##K39, KC_##K3A, KC_##K3B, KC_##K3C, KC_##K3D, KC_##K3E }, \
  50. ^
  51. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  52. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  53. ^
  54. keymap_common.h:45:137: error: 'KC_KC_SLASH' undeclared here (not in a function)
  55. { KC_##K30, KC_##K31, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_NO, KC_##K37, KC_NO, KC_##K39, KC_##K3A, KC_##K3B, KC_##K3C, KC_##K3D, KC_##K3E }, \
  56. ^
  57. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  58. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  59. ^
  60. keymap_common.h:45:147: error: 'KC_KC_NUBS' undeclared here (not in a function)
  61. { KC_##K30, KC_##K31, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_NO, KC_##K37, KC_NO, KC_##K39, KC_##K3A, KC_##K3B, KC_##K3C, KC_##K3D, KC_##K3E }, \
  62. ^
  63. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  64. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  65. ^
  66. keymap_common.h:46:27: error: 'KC_KC_ENT' undeclared here (not in a function)
  67. { KC_##K40, KC_##K41, KC_##K42, KC_##K43, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_##K4B, KC_##K4C, KC_##K4D, KC_##K4E }, \
  68. ^
  69. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  70. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  71. ^
  72. keymap_common.h:46:137: error: 'KC_KC_LWIN' undeclared here (not in a function)
  73. { KC_##K40, KC_##K41, KC_##K42, KC_##K43, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_##K4B, KC_##K4C, KC_##K4D, KC_##K4E }, \
  74. ^
  75. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  76. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  77. ^
  78. keymap_common.h:46:147: error: 'KC_KC_PSCR' undeclared here (not in a function)
  79. { KC_##K40, KC_##K41, KC_##K42, KC_##K43, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_##K4B, KC_##K4C, KC_##K4D, KC_##K4E }, \
  80. ^
  81. keymap_poker.c:5:5: note: in expansion of macro 'KEYMAP'
  82. KEYMAP(ESC, 1, 2, 3, 4, 5, 7, 8, 9, 6, 7, 8, 9, 0, KC_BSPC, \
  83. ^
  84. keymap_poker.c:13:2: warning: braces around scalar initializer
  85. [0] = ACTION_LAYER_MOMENTARY(1),
  86. ^
  87. keymap_poker.c:13:2: note: (near initialization for 'fn_actions[0]')
  88. In file included from ../../tmk_core/common/action.h:24:0,
  89. from keymap_common.h:23,
  90. from keymap_poker.c:1:
  91. ../../tmk_core/common/action_code.h:189:43: error: field name not in record or union initializer
  92. #define ACTION(kind, param) { .code = ((kind)<<12 | (param)) }
  93. ^
  94. ../../tmk_core/common/action_code.h:259:53: note: in expansion of macro 'ACTION'
  95. #define ACTION_LAYER_TAP(layer, key) ACTION(ACT_LAYER_TAP, (layer)<<8 | (key))
  96. ^
  97. ../../tmk_core/common/action_code.h:271:53: note: in expansion of macro 'ACTION_LAYER_TAP'
  98. #define ACTION_LAYER_ON_OFF(layer) ACTION_LAYER_TAP((layer), OP_ON_OFF)
  99. ^
  100. ../../tmk_core/common/action_code.h:265:53: note: in expansion of macro 'ACTION_LAYER_ON_OFF'
  101. #define ACTION_LAYER_MOMENTARY(layer) ACTION_LAYER_ON_OFF(layer)
  102. ^
  103. keymap_poker.c:13:8: note: in expansion of macro 'ACTION_LAYER_MOMENTARY'
  104. [0] = ACTION_LAYER_MOMENTARY(1),
  105. ^
  106. ../../tmk_core/common/action_code.h:189:43: note: (near initialization for 'fn_actions[0]')
  107. #define ACTION(kind, param) { .code = ((kind)<<12 | (param)) }
  108. ^
  109. ../../tmk_core/common/action_code.h:259:53: note: in expansion of macro 'ACTION'
  110. #define ACTION_LAYER_TAP(layer, key) ACTION(ACT_LAYER_TAP, (layer)<<8 | (key))
  111. ^
  112. ../../tmk_core/common/action_code.h:271:53: note: in expansion of macro 'ACTION_LAYER_TAP'
  113. #define ACTION_LAYER_ON_OFF(layer) ACTION_LAYER_TAP((layer), OP_ON_OFF)
  114. ^
  115. ../../tmk_core/common/action_code.h:265:53: note: in expansion of macro 'ACTION_LAYER_ON_OFF'
  116. #define ACTION_LAYER_MOMENTARY(layer) ACTION_LAYER_ON_OFF(layer)
  117. ^
  118. keymap_poker.c:13:8: note: in expansion of macro 'ACTION_LAYER_MOMENTARY'
  119. [0] = ACTION_LAYER_MOMENTARY(1),
  120. ^
  121. keymap_poker.c:14:2: warning: braces around scalar initializer
  122. [1] = ACTION_LAYER_TAP_KEY(1, KC_ESC),
  123. ^
  124. keymap_poker.c:14:2: note: (near initialization for 'fn_actions[1]')
  125. In file included from ../../tmk_core/common/action.h:24:0,
  126. from keymap_common.h:23,
  127. from keymap_poker.c:1:
  128. ../../tmk_core/common/action_code.h:189:43: error: field name not in record or union initializer
  129. #define ACTION(kind, param) { .code = ((kind)<<12 | (param)) }
  130. ^
  131. ../../tmk_core/common/action_code.h:259:53: note: in expansion of macro 'ACTION'
  132. #define ACTION_LAYER_TAP(layer, key) ACTION(ACT_LAYER_TAP, (layer)<<8 | (key))
  133. ^
  134. ../../tmk_core/common/action_code.h:276:53: note: in expansion of macro 'ACTION_LAYER_TAP'
  135. #define ACTION_LAYER_TAP_KEY(layer, key) ACTION_LAYER_TAP((layer), (key))
  136. ^
  137. keymap_poker.c:14:8: note: in expansion of macro 'ACTION_LAYER_TAP_KEY'
  138. [1] = ACTION_LAYER_TAP_KEY(1, KC_ESC),
  139. ^
  140. ../../tmk_core/common/action_code.h:189:43: note: (near initialization for 'fn_actions[1]')
  141. #define ACTION(kind, param) { .code = ((kind)<<12 | (param)) }
  142. ^
  143. ../../tmk_core/common/action_code.h:259:53: note: in expansion of macro 'ACTION'
  144. #define ACTION_LAYER_TAP(layer, key) ACTION(ACT_LAYER_TAP, (layer)<<8 | (key))
  145. ^
  146. ../../tmk_core/common/action_code.h:276:53: note: in expansion of macro 'ACTION_LAYER_TAP'
  147. #define ACTION_LAYER_TAP_KEY(layer, key) ACTION_LAYER_TAP((layer), (key))
  148. ^
  149. keymap_poker.c:14:8: note: in expansion of macro 'ACTION_LAYER_TAP_KEY'
  150. [1] = ACTION_LAYER_TAP_KEY(1, KC_ESC),
  151. ^
  152. keymap_poker.c:15:2: warning: braces around scalar initializer
  153. [2] = ACTION_LAYER_TOGGLE(2)
  154. ^
  155. keymap_poker.c:15:2: note: (near initialization for 'fn_actions[2]')
  156. In file included from ../../tmk_core/common/action.h:24:0,
  157. from keymap_common.h:23,
  158. from keymap_poker.c:1:
  159. ../../tmk_core/common/action_code.h:189:43: error: field name not in record or union initializer
  160. #define ACTION(kind, param) { .code = ((kind)<<12 | (param)) }
  161. ^
  162. ../../tmk_core/common/action_code.h:258:53: note: in expansion of macro 'ACTION'
  163. #define ACTION_LAYER_BITOP(op, part, bits, on) ACTION(ACT_LAYER, (op)<<10 | (on)<<8 | (part)<<5 | ((bits)&0x1f))
  164. ^
  165. ../../tmk_core/common/action_code.h:281:53: note: in expansion of macro 'ACTION_LAYER_BITOP'
  166. #define ACTION_LAYER_BIT_XOR(part, bits, on) ACTION_LAYER_BITOP(OP_BIT_XOR, (part), (bits), (on))
  167. ^
  168. ../../tmk_core/common/action_code.h:267:53: note: in expansion of macro 'ACTION_LAYER_BIT_XOR'
  169. #define ACTION_LAYER_INVERT(layer, on) ACTION_LAYER_BIT_XOR((layer)/4, 1<<((layer)%4), (on))
  170. ^
  171. ../../tmk_core/common/action_code.h:266:53: note: in expansion of macro 'ACTION_LAYER_INVERT'
  172. #define ACTION_LAYER_TOGGLE(layer) ACTION_LAYER_INVERT(layer, ON_RELEASE)
  173. ^
  174. keymap_poker.c:15:8: note: in expansion of macro 'ACTION_LAYER_TOGGLE'
  175. [2] = ACTION_LAYER_TOGGLE(2)
  176. ^
  177. ../../tmk_core/common/action_code.h:189:43: note: (near initialization for 'fn_actions[2]')
  178. #define ACTION(kind, param) { .code = ((kind)<<12 | (param)) }
  179. ^
  180. ../../tmk_core/common/action_code.h:258:53: note: in expansion of macro 'ACTION'
  181. #define ACTION_LAYER_BITOP(op, part, bits, on) ACTION(ACT_LAYER, (op)<<10 | (on)<<8 | (part)<<5 | ((bits)&0x1f))
  182. ^
  183. ../../tmk_core/common/action_code.h:281:53: note: in expansion of macro 'ACTION_LAYER_BITOP'
  184. #define ACTION_LAYER_BIT_XOR(part, bits, on) ACTION_LAYER_BITOP(OP_BIT_XOR, (part), (bits), (on))
  185. ^
  186. ../../tmk_core/common/action_code.h:267:53: note: in expansion of macro 'ACTION_LAYER_BIT_XOR'
  187. #define ACTION_LAYER_INVERT(layer, on) ACTION_LAYER_BIT_XOR((layer)/4, 1<<((layer)%4), (on))
  188. ^
  189. ../../tmk_core/common/action_code.h:266:53: note: in expansion of macro 'ACTION_LAYER_INVERT'
  190. #define ACTION_LAYER_TOGGLE(layer) ACTION_LAYER_INVERT(layer, ON_RELEASE)
  191. ^
  192. keymap_poker.c:15:8: note: in expansion of macro 'ACTION_LAYER_TOGGLE'
  193. [2] = ACTION_LAYER_TOGGLE(2)
  194. ^
  195. make: *** [../../tmk_core/rules.mk:557: obj_gh60_lufa/keymap_poker.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement