Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- home@home-Aspire-E1-772G:~/Загрузки$ gcc -o sfdsfd main.c OutputInterface.c alu_cu.c myBigChars.c mySimpleComputer.c myTerm.c read_key.c u_io.c -L libsc.a
- In file included from main.c:8:0:
- mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
- extern int flags = 20;
- ^
- main.c: In function ‘signalhandler’:
- main.c:18:21: error: ‘f_my’ undeclared (first use in this function)
- sc_regGet(R_FLAG, &f_my);
- ^
- main.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
- main.c:19:21: error: ‘ignor’ undeclared (first use in this function)
- sc_regGet(I_FLAG, &ignor);
- ^
- main.c: In function ‘main’:
- main.c:41:5: error: ‘nval’ undeclared (first use in this function)
- nval.it_interval.tv_sec = 1;
- ^
- main.c:51:5: error: ‘f_my’ undeclared (first use in this function)
- f_my = 0;
- ^
- main.c:52:5: error: ‘ignor’ undeclared (first use in this function)
- ignor = 0;
- ^
- In file included from OutputInterface.c:3:0:
- mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
- extern int flags = 20;
- ^
- OutputInterface.c: In function ‘outint_printFlags’:
- OutputInterface.c:73:12: error: ‘P’ undeclared (first use in this function)
- sc_regGet(P, &value);
- ^
- OutputInterface.c:73:12: note: each undeclared identifier is reported only once for each function it appears in
- OutputInterface.c:75:12: error: ‘O’ undeclared (first use in this function)
- sc_regGet(O, &value);
- ^
- OutputInterface.c:77:12: error: ‘M’ undeclared (first use in this function)
- sc_regGet(M, &value);
- ^
- OutputInterface.c:79:12: error: ‘T’ undeclared (first use in this function)
- sc_regGet(T, &value);
- ^
- OutputInterface.c:81:12: error: ‘E’ undeclared (first use in this function)
- sc_regGet(E, &value);
- ^
- OutputInterface.c: In function ‘outint_printBigChars’:
- OutputInterface.c:87:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
- bc_printbigchar(bmas[0], 14, 2);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:87:2: error: too few arguments to function ‘bc_printbigchar’
- bc_printbigchar(bmas[0], 14, 2);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: declared here
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:88:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
- bc_printbigchar(bmas[1], 14, 11);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:88:2: error: too few arguments to function ‘bc_printbigchar’
- bc_printbigchar(bmas[1], 14, 11);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: declared here
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:89:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
- bc_printbigchar(bmas[2], 14, 20);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:89:2: error: too few arguments to function ‘bc_printbigchar’
- bc_printbigchar(bmas[2], 14, 20);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: declared here
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:90:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
- bc_printbigchar(bmas[3], 14, 29);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:90:2: error: too few arguments to function ‘bc_printbigchar’
- bc_printbigchar(bmas[3], 14, 29);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: declared here
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:91:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
- bc_printbigchar(bmas[4], 14, 38);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c:91:2: error: too few arguments to function ‘bc_printbigchar’
- bc_printbigchar(bmas[4], 14, 38);
- ^
- In file included from OutputInterface.c:4:0:
- myBigChars.h:20:5: note: declared here
- int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
- ^
- OutputInterface.c: In function ‘sig_time_handler’:
- OutputInterface.c:141:13: error: ‘BIGplus’ undeclared (first use in this function)
- bmas[0] = BIGplus;
- ^
- OutputInterface.c:143:13: error: ‘BIGminus’ undeclared (first use in this function)
- bmas[0] = BIGminus;
- ^
- OutputInterface.c:147:12: error: ‘bigCharsMas’ undeclared (first use in this function)
- bmas[1] = bigCharsMas[command / 16];
- ^
- OutputInterface.c: In function ‘work’:
- OutputInterface.c:181:14: error: ‘BIGplus’ undeclared (first use in this function)
- bmas[0] = BIGplus;
- ^
- OutputInterface.c:183:14: error: ‘BIGminus’ undeclared (first use in this function)
- bmas[0] = BIGminus;
- ^
- OutputInterface.c:187:13: error: ‘bigCharsMas’ undeclared (first use in this function)
- bmas[1] = bigCharsMas[command / 16];
- ^
- OutputInterface.c:195:8: error: variable ‘key’ has initializer but incomplete type
- enum keys key = K_UNDEF;
- ^
- OutputInterface.c:195:19: error: ‘K_UNDEF’ undeclared (first use in this function)
- enum keys key = K_UNDEF;
- ^
- OutputInterface.c:195:13: error: storage size of ‘key’ isn’t known
- enum keys key = K_UNDEF;
- ^
- In file included from alu_cu.c:9:0:
- mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
- extern int flags = 20;
- ^
- alu_cu.c: In function ‘CU’:
- alu_cu.c:106:20: error: storage size of ‘oldState’ isn’t known
- struct termios oldState, termState;
- ^
- alu_cu.c:106:30: error: storage size of ‘termState’ isn’t known
- struct termios oldState, termState;
- ^
- alu_cu.c:108:18: error: ‘TERM’ undeclared (first use in this function)
- int term = open(TERM, O_RDWR);
- ^
- alu_cu.c:108:18: note: each undeclared identifier is reported only once for each function it appears in
- alu_cu.c:115:6: error: too many arguments to function ‘termSave’
- termSave(&oldState);
- ^
- In file included from alu_cu.c:12:0:
- read_key.h:19:5: note: declared here
- int termSave (void);
- ^
- alu_cu.c:117:19: error: ‘TCSANOW’ undeclared (first use in this function)
- tcsetattr(1, TCSANOW, &termState);
- ^
- alu_cu.c:129:6: error: too many arguments to function ‘termRestore’
- termRestore(&oldState);
- ^
- In file included from alu_cu.c:12:0:
- read_key.h:22:5: note: declared here
- int termRestore (void);
- ^
- alu_cu.c:185:21: error: ‘f_my’ undeclared (first use in this function)
- f_my = 0;
- ^
- In file included from mySimpleComputer.c:4:0:
- mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
- extern int flags = 20;
- ^
- mySimpleComputer.c:7:5: error: redefinition of ‘flags’
- int flags = 20;
- ^
- In file included from mySimpleComputer.c:4:0:
- mySimpleComputer.h:2:12: note: previous definition of ‘flags’ was here
- extern int flags = 20;
- ^
- mySimpleComputer.c: In function ‘sc_commandEncode’:
- mySimpleComputer.c:211:12: error: ‘BC’ undeclared (first use in this function)
- sc_regSet(BC, 0);
- ^
- mySimpleComputer.c:211:12: note: each undeclared identifier is reported only once for each function it appears in
- mySimpleComputer.c: In function ‘sc_commandDecode’:
- mySimpleComputer.c:220:13: error: ‘BC’ undeclared (first use in this function)
- sc_regSet(BC, 1);
- ^
- mySimpleComputer.c: In function ‘timerStart’:
- mySimpleComputer.c:241:13: error: ‘ITIMER_REAL’ undeclared (first use in this function)
- setitimer (ITIMER_REAL, &nval, &oval);
- ^
- mySimpleComputer.c:241:27: error: ‘nval’ undeclared (first use in this function)
- setitimer (ITIMER_REAL, &nval, &oval);
- ^
- mySimpleComputer.c:241:34: error: ‘oval’ undeclared (first use in this function)
- setitimer (ITIMER_REAL, &nval, &oval);
- ^
- In file included from read_key.c:8:0:
- mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
- extern int flags = 20;
- ^
- read_key.c: In function ‘readKey’:
- read_key.c:56:10: error: ‘ESC’ undeclared (first use in this function)
- case ESC:
- ^
- read_key.c:56:10: note: each undeclared identifier is reported only once for each function it appears in
- read_key.c: In function ‘termRestore’:
- read_key.c:154:1: error: expected declaration or statement at end of input
- }
- ^
- In file included from u_io.c:5:0:
- mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
- extern int flags = 20;
- ^
- u_io.c: In function ‘user_input_ax’:
- u_io.c:14:21: error: ‘TERM’ undeclared (first use in this function)
- int term = open(TERM, O_RDWR);
- ^
- u_io.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
- u_io.c:17:9: warning: ‘return’ with a value, in function returning void [enabled by default]
- return -1;
- ^
- u_io.c: In function ‘user_input_ip’:
- u_io.c:32:21: error: ‘TERM’ undeclared (first use in this function)
- int term = open(TERM, O_RDWR);
- ^
- u_io.c:35:9: warning: ‘return’ with a value, in function returning void [enabled by default]
- return -1;
- ^
- u_io.c:43:24: error: ‘MEMSIZE’ undeclared (first use in this function)
- if(ip >= 0 && ip < MEMSIZE)
- ^
- u_io.c:46:13: error: ‘OM’ undeclared (first use in this function)
- sc_regSet(OM, 1);
- ^
- u_io.c: In function ‘user_input_mem’:
- u_io.c:53:18: error: ‘TERM’ undeclared (first use in this function)
- int term = open(TERM, O_RDWR);
- ^
- u_io.c:56:9: warning: ‘return’ with a value, in function returning void [enabled by default]
- return -1;
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement