rainautumn / ttytanks

10 stars 1 forks source link

Patch 1 #1

Closed DmitryHetman closed 8 years ago

DmitryHetman commented 8 years ago

У меня все-равно сыпет ошибками при компиляции... utils.c:102:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y-1, t->mex-1, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSESEXPORT(int) waddch (WINDOW *, const chtype); / implemented _/ ^ utils.c:103:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y-1, t->me_x+1, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c:109:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y, t->me_x, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c:110:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y-1, t->me_x, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c:111:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y+1, t->me_x, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c:112:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y, t->me_x-1, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c:113:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y-1, t->me_x+1, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c:114:17: warning: passing argument 2 of 'waddch' makes integer from pointer without a cast [-Wint-conversion] mvaddch(t->me_y+1, t->me_x+1, t->skin); ^ In file included from utils.h:16:0, from utils.c:8: /usr/include/curses.h:792:28: note: expected 'chtype {aka const unsigned int}' but argument is of type 'char ' extern NCURSES_EXPORT(int) waddch (WINDOW , const chtype); / implemented / ^ utils.c: In function 'boom_render': utils.c:167:24: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] if(abs(t[k].me_x - b_bot[i].me_x) <= 1 && abs(t[k].me_y - b_bot[i].me_y) <=1 && t[k].live == 'Y' && b_bot[i].live == 'Y') ^ cc -std=c99 -march=native -O2 -pipe -c -o kernel.o kernel.c gcc main.o utils.o kernel.o -std=c99 -march=native -O2 -pipe -lpthread -lncurses -o ttytanks /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x8664-pc-linux-gnu/bin/ld: main.o: undefined reference to symbol 'halfdelay' /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: ** [Makefile:7: ttytanks] Error 1

rainautumn commented 8 years ago

тестил на FreeBSD и android только.. попробуй в Ubuntu

sudo apt-get install libncurses5

Блин 5 утра! тебе делать нечего?

rainautumn commented 8 years ago

приятной игры