Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gcc -Wall demo.c -o demo -lncurses
- In file included from demo.c:4:0:
- kbhit.c: In function ‘_kbhit’:
- kbhit.c:16:9: error: unknown type name ‘termios’
- termios term;
- ^
- kbhit.c:17:26: warning: passing argument 2 of ‘tcgetattr’ from incompatible pointer type [-Wincompatible-pointer-types]
- tcgetattr(STDIN, &term);
- ^
- In file included from kbhit.c:7:0,
- from demo.c:4:
- /usr/include/termios.h:66:12: note: expected ‘struct termios *’ but argument is of type ‘int *’
- extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW;
- ^
- In file included from demo.c:4:0:
- kbhit.c:18:13: error: request for member ‘c_lflag’ in something not a structure or union
- term.c_lflag &= ~ICANON;
- ^
- kbhit.c:19:35: warning: passing argument 3 of ‘tcsetattr’ from incompatible pointer type [-Wincompatible-pointer-types]
- tcsetattr(STDIN, TCSANOW, &term);
- ^
- In file included from kbhit.c:7:0,
- from demo.c:4:
- /usr/include/termios.h:70:12: note: expected ‘const struct termios *’ but argument is of type ‘int *’
- extern int tcsetattr (int __fd, int __optional_actions,
- ^
- In file included from demo.c:4:0:
- kbhit.c:25:18: error: ‘FIONREAD’ undeclared (first use in this function)
- ioctl(STDIN, FIONREAD, &bytesWaiting);
- ^
- kbhit.c:25:18: note: each undeclared identifier is reported only once for each function it appears in
- Makefile:6: fallo en las instrucciones para el objetivo 'all'
- make: *** [all] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement