Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.69 KB | None | 0 0
  1. 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
  2. In file included from main.c:8:0:
  3. mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
  4. extern int flags = 20;
  5. ^
  6. main.c: In function ‘signalhandler’:
  7. main.c:18:21: error: ‘f_my’ undeclared (first use in this function)
  8. sc_regGet(R_FLAG, &f_my);
  9. ^
  10. main.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
  11. main.c:19:21: error: ‘ignor’ undeclared (first use in this function)
  12. sc_regGet(I_FLAG, &ignor);
  13. ^
  14. main.c: In function ‘main’:
  15. main.c:41:5: error: ‘nval’ undeclared (first use in this function)
  16. nval.it_interval.tv_sec = 1;
  17. ^
  18. main.c:51:5: error: ‘f_my’ undeclared (first use in this function)
  19. f_my = 0;
  20. ^
  21. main.c:52:5: error: ‘ignor’ undeclared (first use in this function)
  22. ignor = 0;
  23. ^
  24. In file included from OutputInterface.c:3:0:
  25. mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
  26. extern int flags = 20;
  27. ^
  28. OutputInterface.c: In function ‘outint_printFlags’:
  29. OutputInterface.c:73:12: error: ‘P’ undeclared (first use in this function)
  30. sc_regGet(P, &value);
  31. ^
  32. OutputInterface.c:73:12: note: each undeclared identifier is reported only once for each function it appears in
  33. OutputInterface.c:75:12: error: ‘O’ undeclared (first use in this function)
  34. sc_regGet(O, &value);
  35. ^
  36. OutputInterface.c:77:12: error: ‘M’ undeclared (first use in this function)
  37. sc_regGet(M, &value);
  38. ^
  39. OutputInterface.c:79:12: error: ‘T’ undeclared (first use in this function)
  40. sc_regGet(T, &value);
  41. ^
  42. OutputInterface.c:81:12: error: ‘E’ undeclared (first use in this function)
  43. sc_regGet(E, &value);
  44. ^
  45. OutputInterface.c: In function ‘outint_printBigChars’:
  46. OutputInterface.c:87:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
  47. bc_printbigchar(bmas[0], 14, 2);
  48. ^
  49. In file included from OutputInterface.c:4:0:
  50. myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
  51. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  52. ^
  53. OutputInterface.c:87:2: error: too few arguments to function ‘bc_printbigchar’
  54. bc_printbigchar(bmas[0], 14, 2);
  55. ^
  56. In file included from OutputInterface.c:4:0:
  57. myBigChars.h:20:5: note: declared here
  58. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  59. ^
  60. OutputInterface.c:88:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
  61. bc_printbigchar(bmas[1], 14, 11);
  62. ^
  63. In file included from OutputInterface.c:4:0:
  64. myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
  65. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  66. ^
  67. OutputInterface.c:88:2: error: too few arguments to function ‘bc_printbigchar’
  68. bc_printbigchar(bmas[1], 14, 11);
  69. ^
  70. In file included from OutputInterface.c:4:0:
  71. myBigChars.h:20:5: note: declared here
  72. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  73. ^
  74. OutputInterface.c:89:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
  75. bc_printbigchar(bmas[2], 14, 20);
  76. ^
  77. In file included from OutputInterface.c:4:0:
  78. myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
  79. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  80. ^
  81. OutputInterface.c:89:2: error: too few arguments to function ‘bc_printbigchar’
  82. bc_printbigchar(bmas[2], 14, 20);
  83. ^
  84. In file included from OutputInterface.c:4:0:
  85. myBigChars.h:20:5: note: declared here
  86. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  87. ^
  88. OutputInterface.c:90:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
  89. bc_printbigchar(bmas[3], 14, 29);
  90. ^
  91. In file included from OutputInterface.c:4:0:
  92. myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
  93. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  94. ^
  95. OutputInterface.c:90:2: error: too few arguments to function ‘bc_printbigchar’
  96. bc_printbigchar(bmas[3], 14, 29);
  97. ^
  98. In file included from OutputInterface.c:4:0:
  99. myBigChars.h:20:5: note: declared here
  100. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  101. ^
  102. OutputInterface.c:91:2: warning: passing argument 1 of ‘bc_printbigchar’ makes pointer from integer without a cast [enabled by default]
  103. bc_printbigchar(bmas[4], 14, 38);
  104. ^
  105. In file included from OutputInterface.c:4:0:
  106. myBigChars.h:20:5: note: expected ‘int *’ but argument is of type ‘long long unsigned int’
  107. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  108. ^
  109. OutputInterface.c:91:2: error: too few arguments to function ‘bc_printbigchar’
  110. bc_printbigchar(bmas[4], 14, 38);
  111. ^
  112. In file included from OutputInterface.c:4:0:
  113. myBigChars.h:20:5: note: declared here
  114. int bc_printbigchar(int bigChar[2],int x, int y, enum colors clr , enum colors clr2);
  115. ^
  116. OutputInterface.c: In function ‘sig_time_handler’:
  117. OutputInterface.c:141:13: error: ‘BIGplus’ undeclared (first use in this function)
  118. bmas[0] = BIGplus;
  119. ^
  120. OutputInterface.c:143:13: error: ‘BIGminus’ undeclared (first use in this function)
  121. bmas[0] = BIGminus;
  122. ^
  123. OutputInterface.c:147:12: error: ‘bigCharsMas’ undeclared (first use in this function)
  124. bmas[1] = bigCharsMas[command / 16];
  125. ^
  126. OutputInterface.c: In function ‘work’:
  127. OutputInterface.c:181:14: error: ‘BIGplus’ undeclared (first use in this function)
  128. bmas[0] = BIGplus;
  129. ^
  130. OutputInterface.c:183:14: error: ‘BIGminus’ undeclared (first use in this function)
  131. bmas[0] = BIGminus;
  132. ^
  133. OutputInterface.c:187:13: error: ‘bigCharsMas’ undeclared (first use in this function)
  134. bmas[1] = bigCharsMas[command / 16];
  135. ^
  136. OutputInterface.c:195:8: error: variable ‘key’ has initializer but incomplete type
  137. enum keys key = K_UNDEF;
  138. ^
  139. OutputInterface.c:195:19: error: ‘K_UNDEF’ undeclared (first use in this function)
  140. enum keys key = K_UNDEF;
  141. ^
  142. OutputInterface.c:195:13: error: storage size of ‘key’ isn’t known
  143. enum keys key = K_UNDEF;
  144. ^
  145. In file included from alu_cu.c:9:0:
  146. mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
  147. extern int flags = 20;
  148. ^
  149. alu_cu.c: In function ‘CU’:
  150. alu_cu.c:106:20: error: storage size of ‘oldState’ isn’t known
  151. struct termios oldState, termState;
  152. ^
  153. alu_cu.c:106:30: error: storage size of ‘termState’ isn’t known
  154. struct termios oldState, termState;
  155. ^
  156. alu_cu.c:108:18: error: ‘TERM’ undeclared (first use in this function)
  157. int term = open(TERM, O_RDWR);
  158. ^
  159. alu_cu.c:108:18: note: each undeclared identifier is reported only once for each function it appears in
  160. alu_cu.c:115:6: error: too many arguments to function ‘termSave’
  161. termSave(&oldState);
  162. ^
  163. In file included from alu_cu.c:12:0:
  164. read_key.h:19:5: note: declared here
  165. int termSave (void);
  166. ^
  167. alu_cu.c:117:19: error: ‘TCSANOW’ undeclared (first use in this function)
  168. tcsetattr(1, TCSANOW, &termState);
  169. ^
  170. alu_cu.c:129:6: error: too many arguments to function ‘termRestore’
  171. termRestore(&oldState);
  172. ^
  173. In file included from alu_cu.c:12:0:
  174. read_key.h:22:5: note: declared here
  175. int termRestore (void);
  176. ^
  177. alu_cu.c:185:21: error: ‘f_my’ undeclared (first use in this function)
  178. f_my = 0;
  179. ^
  180. In file included from mySimpleComputer.c:4:0:
  181. mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
  182. extern int flags = 20;
  183. ^
  184. mySimpleComputer.c:7:5: error: redefinition of ‘flags’
  185. int flags = 20;
  186. ^
  187. In file included from mySimpleComputer.c:4:0:
  188. mySimpleComputer.h:2:12: note: previous definition of ‘flags’ was here
  189. extern int flags = 20;
  190. ^
  191. mySimpleComputer.c: In function ‘sc_commandEncode’:
  192. mySimpleComputer.c:211:12: error: ‘BC’ undeclared (first use in this function)
  193. sc_regSet(BC, 0);
  194. ^
  195. mySimpleComputer.c:211:12: note: each undeclared identifier is reported only once for each function it appears in
  196. mySimpleComputer.c: In function ‘sc_commandDecode’:
  197. mySimpleComputer.c:220:13: error: ‘BC’ undeclared (first use in this function)
  198. sc_regSet(BC, 1);
  199. ^
  200. mySimpleComputer.c: In function ‘timerStart’:
  201. mySimpleComputer.c:241:13: error: ‘ITIMER_REAL’ undeclared (first use in this function)
  202. setitimer (ITIMER_REAL, &nval, &oval);
  203. ^
  204. mySimpleComputer.c:241:27: error: ‘nval’ undeclared (first use in this function)
  205. setitimer (ITIMER_REAL, &nval, &oval);
  206. ^
  207. mySimpleComputer.c:241:34: error: ‘oval’ undeclared (first use in this function)
  208. setitimer (ITIMER_REAL, &nval, &oval);
  209. ^
  210. In file included from read_key.c:8:0:
  211. mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
  212. extern int flags = 20;
  213. ^
  214. read_key.c: In function ‘readKey’:
  215. read_key.c:56:10: error: ‘ESC’ undeclared (first use in this function)
  216. case ESC:
  217. ^
  218. read_key.c:56:10: note: each undeclared identifier is reported only once for each function it appears in
  219. read_key.c: In function ‘termRestore’:
  220. read_key.c:154:1: error: expected declaration or statement at end of input
  221. }
  222. ^
  223. In file included from u_io.c:5:0:
  224. mySimpleComputer.h:2:12: warning: ‘flags’ initialized and declared ‘extern’ [enabled by default]
  225. extern int flags = 20;
  226. ^
  227. u_io.c: In function ‘user_input_ax’:
  228. u_io.c:14:21: error: ‘TERM’ undeclared (first use in this function)
  229. int term = open(TERM, O_RDWR);
  230. ^
  231. u_io.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
  232. u_io.c:17:9: warning: ‘return’ with a value, in function returning void [enabled by default]
  233. return -1;
  234. ^
  235. u_io.c: In function ‘user_input_ip’:
  236. u_io.c:32:21: error: ‘TERM’ undeclared (first use in this function)
  237. int term = open(TERM, O_RDWR);
  238. ^
  239. u_io.c:35:9: warning: ‘return’ with a value, in function returning void [enabled by default]
  240. return -1;
  241. ^
  242. u_io.c:43:24: error: ‘MEMSIZE’ undeclared (first use in this function)
  243. if(ip >= 0 && ip < MEMSIZE)
  244. ^
  245. u_io.c:46:13: error: ‘OM’ undeclared (first use in this function)
  246. sc_regSet(OM, 1);
  247. ^
  248. u_io.c: In function ‘user_input_mem’:
  249. u_io.c:53:18: error: ‘TERM’ undeclared (first use in this function)
  250. int term = open(TERM, O_RDWR);
  251. ^
  252. u_io.c:56:9: warning: ‘return’ with a value, in function returning void [enabled by default]
  253. return -1;
  254. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement