Advertisement
Guest User

Untitled

a guest
Jun 28th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.09 KB | None | 0 0
  1. ilya@www ~/tmp $ gcc -Dchar=wchar_t -Dprintf=wprintf test.c
  2. In file included from /usr/include/stdio.h:35:0,
  3. from test.c:1:
  4. /usr/include/bits/types.h:30:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__u_char’
  5. typedef unsigned char __u_char;
  6. ^~~~~~~~
  7. /usr/include/bits/types.h:36:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__int8_t’
  8. typedef signed char __int8_t;
  9. ^~~~~~~~
  10. /usr/include/bits/types.h:37:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__uint8_t’
  11. typedef unsigned char __uint8_t;
  12. ^~~~~~~~~
  13. <command-line>:0:6: error: unknown type name ‘wchar_t’
  14. <command-line>:0:6: error: unknown type name ‘wchar_t’
  15. <command-line>:0:6: error: unknown type name ‘wchar_t’
  16. <command-line>:0:6: error: unknown type name ‘wchar_t’
  17. <command-line>:0:6: error: unknown type name ‘wchar_t’
  18. <command-line>:0:6: error: unknown type name ‘wchar_t’
  19. <command-line>:0:6: error: unknown type name ‘wchar_t’
  20. <command-line>:0:6: error: unknown type name ‘wchar_t’
  21. <command-line>:0:6: error: unknown type name ‘wchar_t’
  22. <command-line>:0:6: error: unknown type name ‘wchar_t’
  23. <command-line>:0:6: error: unknown type name ‘wchar_t’
  24. <command-line>:0:6: error: unknown type name ‘wchar_t’
  25. <command-line>:0:6: error: unknown type name ‘wchar_t’
  26. In file included from /usr/include/stdio.h:41:0,
  27. from test.c:1:
  28. /usr/include/libio.h:275:15: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘_vtable_offset’
  29. signed char _vtable_offset;
  30. ^~~~~~~~~~~~~~
  31. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  32. <command-line>:0:6: error: unknown type name ‘wchar_t’
  33. <command-line>:0:6: error: unknown type name ‘wchar_t’
  34. <command-line>:0:6: error: unknown type name ‘wchar_t’
  35. <command-line>:0:6: error: unknown type name ‘wchar_t’
  36. <command-line>:0:6: error: unknown type name ‘wchar_t’
  37. <command-line>:0:6: error: unknown type name ‘wchar_t’
  38. <command-line>:0:6: error: unknown type name ‘wchar_t’
  39. <command-line>:0:6: error: unknown type name ‘wchar_t’
  40. <command-line>:0:6: error: unknown type name ‘wchar_t’
  41. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  42. <command-line>:0:6: error: unknown type name ‘wchar_t’
  43. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  44. <command-line>:0:6: error: unknown type name ‘wchar_t’
  45. <command-line>:0:6: error: unknown type name ‘wchar_t’
  46. <command-line>:0:6: error: unknown type name ‘wchar_t’
  47. <command-line>:0:6: error: unknown type name ‘wchar_t’
  48. <command-line>:0:6: error: unknown type name ‘wchar_t’
  49. <command-line>:0:6: error: unknown type name ‘wchar_t’
  50. <command-line>:0:6: error: unknown type name ‘wchar_t’
  51. <command-line>:0:6: error: unknown type name ‘wchar_t’
  52. <command-line>:0:6: error: unknown type name ‘wchar_t’
  53. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  54. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  55. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  56. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  57. <command-line>:0:6: error: unknown type name ‘wchar_t’
  58. <command-line>:0:6: error: unknown type name ‘wchar_t’
  59. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  60. <command-line>:0:6: error: unknown type name ‘wchar_t’
  61. <command-line>:0:6: error: unknown type name ‘wchar_t’
  62. <command-line>:0:6: error: unknown type name ‘wchar_t’
  63. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  64. <command-line>:0:6: error: unknown type name ‘wchar_t’
  65. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  66. <command-line>:0:6: error: unknown type name ‘wchar_t’
  67. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  68. <command-line>:0:6: error: unknown type name ‘wchar_t’
  69. <command-line>:0:6: error: unknown type name ‘wchar_t’
  70. In file included from test.c:1:0:
  71. /usr/include/stdio.h:367:6: error: format string argument is not a string type
  72. __attribute__ ((__format__ (__printf__, 2, 0)));
  73. ^~~~~~~~~~~~~
  74. <command-line>:0:6: error: unknown type name ‘wchar_t’
  75. In file included from test.c:1:0:
  76. /usr/include/stdio.h:369:6: error: format string argument is not a string type
  77. __attribute__ ((__format__ (__printf__, 2, 3)));
  78. ^~~~~~~~~~~~~
  79. <command-line>:0:6: error: unknown type name ‘wchar_t’
  80. <command-line>:0:6: error: unknown type name ‘wchar_t’
  81. <command-line>:0:6: error: unknown type name ‘wchar_t’
  82. <command-line>:0:6: error: unknown type name ‘wchar_t’
  83. In file included from /usr/include/features.h:423:0,
  84. from /usr/include/bits/libc-header-start.h:33,
  85. from /usr/include/stdio.h:27,
  86. from test.c:1:
  87. <command-line>:0:6: error: unknown type name ‘wchar_t’
  88. <command-line>:0:6: error: unknown type name ‘wchar_t’
  89. <command-line>:0:6: error: unknown type name ‘wchar_t’
  90. <command-line>:0:6: error: unknown type name ‘wchar_t’
  91. <command-line>:0:6: error: unknown type name ‘wchar_t’
  92. In file included from test.c:1:0:
  93. /usr/include/stdio.h:422:6: error: format string argument is not a string type
  94. __attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
  95. ^~~~~~~~~~~~~
  96. <command-line>:0:6: error: unknown type name ‘wchar_t’
  97. In file included from test.c:1:0:
  98. /usr/include/stdio.h:429:6: error: format string argument is not a string type
  99. __attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
  100. ^~~~~~~~~~~~~
  101. <command-line>:0:6: error: unknown type name ‘wchar_t’
  102. <command-line>:0:6: error: unknown type name ‘wchar_t’
  103. In file included from test.c:1:0:
  104. /usr/include/stdio.h:434:6: error: format string argument is not a string type
  105. __THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
  106. ^~~~~~~
  107. In file included from /usr/include/features.h:423:0,
  108. from /usr/include/bits/libc-header-start.h:33,
  109. from /usr/include/stdio.h:27,
  110. from test.c:1:
  111. <command-line>:0:6: error: unknown type name ‘wchar_t’
  112. In file included from test.c:1:0:
  113. /usr/include/stdio.h:447:6: error: format string argument is not a string type
  114. __attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
  115. ^~~~~~~~~~~~~
  116. In file included from /usr/include/features.h:423:0,
  117. from /usr/include/bits/libc-header-start.h:33,
  118. from /usr/include/stdio.h:27,
  119. from test.c:1:
  120. <command-line>:0:6: error: unknown type name ‘wchar_t’
  121. In file included from test.c:1:0:
  122. /usr/include/stdio.h:450:6: error: format string argument is not a string type
  123. __attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
  124. ^~~~~~~~~~~~~
  125. In file included from /usr/include/features.h:423:0,
  126. from /usr/include/bits/libc-header-start.h:33,
  127. from /usr/include/stdio.h:27,
  128. from test.c:1:
  129. <command-line>:0:6: error: unknown type name ‘wchar_t’
  130. <command-line>:0:6: error: unknown type name ‘wchar_t’
  131. In file included from test.c:1:0:
  132. /usr/include/stdio.h:455:6: error: format string argument is not a string type
  133. __attribute__ ((__format__ (__scanf__, 2, 0)));
  134. ^~~~~~~~~~~~~
  135. <command-line>:0:6: error: unknown type name ‘wchar_t’
  136. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  137. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  138. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  139. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  140. <command-line>:0:6: error: unknown type name ‘wchar_t’
  141. <command-line>:0:6: error: unknown type name ‘wchar_t’
  142. <command-line>:0:6: error: unknown type name ‘wchar_t’
  143. <command-line>:0:6: error: unknown type name ‘wchar_t’
  144. <command-line>:0:6: error: unknown type name ‘wchar_t’
  145. <command-line>:0:6: error: unknown type name ‘wchar_t’
  146. <command-line>:0:6: error: unknown type name ‘wchar_t’
  147. <command-line>:0:6: error: unknown type name ‘wchar_t’; did you mean ‘char’?
  148. In file included from /usr/include/stdlib.h:279:0,
  149. from test.c:2:
  150. /usr/include/sys/types.h:33:9: error: unknown type name ‘__u_char’
  151. typedef __u_char u_char;
  152. ^~~~~~~~
  153. In file included from /usr/include/sys/types.h:156:0,
  154. from /usr/include/stdlib.h:279,
  155. from test.c:2:
  156. /usr/include/bits/stdint-intn.h:24:9: error: unknown type name ‘__int8_t’
  157. typedef __int8_t int8_t;
  158. ^~~~~~~~
  159. In file included from /usr/include/bits/thread-shared-types.h:77:0,
  160. from /usr/include/bits/pthreadtypes.h:23,
  161. from /usr/include/sys/types.h:245,
  162. from /usr/include/stdlib.h:279,
  163. from test.c:2:
  164. /usr/include/bits/pthreadtypes-arch.h:76:15: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘__rwelision’
  165. signed char __rwelision;
  166. ^~~~~~~~~~~
  167. test.c: In function ‘main’:
  168. test.c:7:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  169. char *i, *s, *a = "линукс12";
  170. ^~~~~~~~~~~~~~~~
  171. test.c:8:7: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
  172. auto c;
  173. ^
  174. test.c:9:14: warning: comparison between pointer and integer
  175. for(i = 0;i < sizeof(a);) {
  176. ^
  177. test.c:10:5: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  178. c = i; free(heap);
  179. ^
  180. test.c:15:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  181. *++s, *--s, (int) i++ & 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement