BHXSpecter

Untitled

Nov 13th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. pong.cpp: In function ‘int main(int, char**)’:
  2. pong.cpp:33:12: error: conflicting declaration ‘bool key [2]’
  3. pong.cpp:24:26: error: ‘key’ has a previous declaration as ‘ALLEGRO_KEYBOARD_STATE* key’
  4. pong.cpp:147:18: error: could not convert ‘* key’ from ‘ALLEGRO_KEYBOARD_STATE’ to ‘bool’
  5. pong.cpp:152:17: error: could not convert ‘*(key + 40u)’ from ‘ALLEGRO_KEYBOARD_STATE’ to ‘bool’
  6. pong.cpp:168:19: error: no match for ‘operator=’ in ‘* key = true’
  7. pong.cpp:168:19: note: candidate is:
  8. /usr/include/allegro5/keyboard.h:34:8: note: ALLEGRO_KEYBOARD_STATE& ALLEGRO_KEYBOARD_STATE::operator=(const ALLEGRO_KEYBOARD_STATE&)
  9. /usr/include/allegro5/keyboard.h:34:8: note: no known conversion for argument 1 from ‘bool’ to ‘const ALLEGRO_KEYBOARD_STATE&’
  10. pong.cpp:171:19: error: no match for ‘operator=’ in ‘*(key + 40u) = true’
  11. pong.cpp:171:19: note: candidate is:
  12. /usr/include/allegro5/keyboard.h:34:8: note: ALLEGRO_KEYBOARD_STATE& ALLEGRO_KEYBOARD_STATE::operator=(const ALLEGRO_KEYBOARD_STATE&)
  13. /usr/include/allegro5/keyboard.h:34:8: note: no known conversion for argument 1 from ‘bool’ to ‘const ALLEGRO_KEYBOARD_STATE&’
  14. pong.cpp:180:19: error: no match for ‘operator=’ in ‘* key = false’
  15. pong.cpp:180:19: note: candidate is:
  16. /usr/include/allegro5/keyboard.h:34:8: note: ALLEGRO_KEYBOARD_STATE& ALLEGRO_KEYBOARD_STATE::operator=(const ALLEGRO_KEYBOARD_STATE&)
  17. /usr/include/allegro5/keyboard.h:34:8: note: no known conversion for argument 1 from ‘bool’ to ‘const ALLEGRO_KEYBOARD_STATE&’
  18. pong.cpp:183:19: error: no match for ‘operator=’ in ‘*(key + 40u) = false’
  19. pong.cpp:183:19: note: candidate is:
  20. /usr/include/allegro5/keyboard.h:34:8: note: ALLEGRO_KEYBOARD_STATE& ALLEGRO_KEYBOARD_STATE::operator=(const ALLEGRO_KEYBOARD_STATE&)
  21. /usr/include/allegro5/keyboard.h:34:8: note: no known conversion for argument 1 from ‘bool’ to ‘const ALLEGRO_KEYBOARD_STATE&’
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment