Guest User

Untitled

a guest
Feb 14th, 2017
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gcc -Wall demo.c -o demo -lncurses
  2. In file included from demo.c:4:0:
  3. kbhit.c: In function ‘_kbhit’:
  4. kbhit.c:16:9: error: unknown type name ‘termios’
  5. termios term;
  6. ^
  7. kbhit.c:17:26: warning: passing argument 2 of ‘tcgetattr’ from incompatible pointer type [-Wincompatible-pointer-types]
  8. tcgetattr(STDIN, &term);
  9. ^
  10. In file included from kbhit.c:7:0,
  11. from demo.c:4:
  12. /usr/include/termios.h:66:12: note: expected ‘struct termios *’ but argument is of type ‘int *’
  13. extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW;
  14. ^
  15. In file included from demo.c:4:0:
  16. kbhit.c:18:13: error: request for member ‘c_lflag’ in something not a structure or union
  17. term.c_lflag &= ~ICANON;
  18. ^
  19. kbhit.c:19:35: warning: passing argument 3 of ‘tcsetattr’ from incompatible pointer type [-Wincompatible-pointer-types]
  20. tcsetattr(STDIN, TCSANOW, &term);
  21. ^
  22. In file included from kbhit.c:7:0,
  23. from demo.c:4:
  24. /usr/include/termios.h:70:12: note: expected ‘const struct termios *’ but argument is of type ‘int *’
  25. extern int tcsetattr (int __fd, int __optional_actions,
  26. ^
  27. In file included from demo.c:4:0:
  28. kbhit.c:25:18: error: ‘FIONREAD’ undeclared (first use in this function)
  29. ioctl(STDIN, FIONREAD, &bytesWaiting);
  30. ^
  31. kbhit.c:25:18: note: each undeclared identifier is reported only once for each function it appears in
  32. Makefile:6: fallo en las instrucciones para el objetivo 'all'
  33. make: *** [all] Error 1
RAW Paste Data