That is main.cppCode:#include <curses.h> int s_palettep; int s_usflag; int s_cposr; int s_cposc; struct x_mttype { struct { unsigned int type : 5; unsigned int obs : 1; unsigned int mystery : 1; unsigned int locale : 1; unsigned int link : 1; unsigned int : 7; } tile; struct { unsigned int tchar : 8; unsigned int palette : 5; unsigned int bright : 1; unsigned int : 2; } tiledat; }; struct x_mttype s_maptemp[19][79]; void clearmap(); void edit(); void ivar(); int main() { ivar(); initscr(); keypad ( stdscr, TRUE ); edit(); endwin(); return 0; }
That is clearmap.cppCode:extern struct x_mttype s_maptemp; void clearmap() { for (int a = 0; a < 20; ++a) { for (int b = 0; b < 80; ++b) { s_maptemp[a][b].tile.type=0; } } }
My problem is that I get this error, when I compile and run the program:
Code:9 clearmap.cpp no match for `x_mttype &[int]'



LinkBack URL
About LinkBacks


