Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. pi@raspberrypi:~/Downloads/ClassiCube-master/src $ gcc *.c -o ClassiCube -lx11 -lpthread -lGL -lm -lcurl -lopenal -ldl
  2. Chat.c: In function ‘Chat_OpenLog’:
  3. Chat.c:125:27: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  4. Chat_LogStream.Meta.File = NULL;
  5. ^
  6. ExtMath.c: In function ‘Math_AbsI’:
  7. ExtMath.c:11:36: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
  8. int Math_AbsI(int x) { return abs(x); /* MSVC intrinsic */ }
  9. ^~~
  10. LWidgets.c:1053:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  11. LTable_MouseDown, LTable_StopDragging, /* Select */
  12. ^~~~~~~~~~~~~~~~~~~
  13. LWidgets.c:1053:20: note: (near initialization for ‘ltable_VTABLE.OnUnselect’)
  14. Platform.c: In function ‘Platform_TextDraw’:
  15. Platform.c:1186:9: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  16. glyph = glyphs[(uint8_t)text.buffer[i]];
  17. ^
  18. Platform.c:1196:30: warning: passing argument 2 of ‘FT_Get_Glyph’ from incompatible pointer type [-Wincompatible-pointer-types]
  19. FT_Get_Glyph(face->glyph, &glyph); /* TODO: Check error */
  20. ^
  21. In file included from Platform.c:14:0:
  22. freetype/ftglyph.h:235:3: note: expected ‘struct FT_GlyphRec_ **’ but argument is of type ‘struct FT_BitmapGlyphRec_ **’
  23. FT_Get_Glyph( FT_GlyphSlot slot,
  24. ^~~~~~~~~~~~
  25. Platform.c:1197:36: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  26. glyphs[(uint8_t)text.buffer[i]] = glyph;
  27. ^
  28. Program.c: In function ‘main’:
  29. Program.c:135:48: warning: passing argument 2 of ‘Platform_GetCommandLineArgs’ from incompatible pointer type [-Wincompatible-pointer-types]
  30. argsCount = Platform_GetCommandLineArgs(argc, argv, args);
  31. ^~~~
  32. In file included from Program.c:2:0:
  33. Platform.h:50:6: note: expected ‘const char **’ but argument is of type ‘char **’
  34. int Platform_GetCommandLineArgs(int argc, STRING_REF const char** argv, String* args);
  35. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. Resources.c: In function ‘SoundPatcher_DecodeAudio’:
  37. Resources.c:617:24: warning: passing argument 2 of ‘Stream_Write’ from incompatible pointer type [-Wincompatible-pointer-types]
  38. res = Stream_Write(s, ctx, 44);
  39. ^~~
  40. In file included from Resources.c:6:0:
  41. Stream.h:46:12: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘struct VorbisState *’
  42. ReturnCode Stream_Write(struct Stream* s, const uint8_t* buffer, uint32_t count);
  43. ^~~~~~~~~~~~
  44. Resources.c:631:25: warning: passing argument 2 of ‘Stream_Write’ from incompatible pointer type [-Wincompatible-pointer-types]
  45. res = Stream_Write(s, samples, count * 2);
  46. ^~~~~~~
  47. In file included from Resources.c:6:0:
  48. Stream.h:46:12: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘int16_t * {aka short int *}’
  49. ReturnCode Stream_Write(struct Stream* s, const uint8_t* buffer, uint32_t count);
  50. ^~~~~~~~~~~~
  51. Screens.c: In function ‘GeneratingScreen_Render’:
  52. Screens.c:680:37: warning: passing argument 2 of ‘String_AppendConst’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  53. String_AppendConst(&s->MessageStr, state);
  54. ^~~~~
  55. In file included from Screens.h:3:0,
  56. from Screens.c:1:
  57. String.h:106:13: note: expected ‘const char *’ but argument is of type ‘const volatile char *’
  58. CC_API void String_AppendConst(String* str, const char* src);
  59. ^~~~~~~~~~~~~~~~~~
  60. Stream.c: In function ‘Stream_FileClose’:
  61. Stream.c:98:15: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  62. s->Meta.File = NULL;
  63. ^
  64. Stream.c: In function ‘Stream_WriteLine’:
  65. Stream.c:505:6: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  66. cur = Platform_NewLine;
  67. ^
  68. String.c: In function ‘String_FromReadonly’:
  69. String.c:29:21: warning: passing argument 1 of ‘String_Init’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  70. return String_Init(buffer, len, len);
  71. ^~~~~~
  72. In file included from String.c:1:0:
  73. String.h:28:25: note: expected ‘char *’ but argument is of type ‘const char *’
  74. static CC_INLINE String String_Init(STRING_REF char* buffer, int length, int capacity) {
  75. ^~~~~~~~~~~
  76. Window.c: In function ‘Window_RefreshBorders’:
  77. Window.c:896:58: warning: passing argument 12 of ‘XGetWindowProperty’ from incompatible pointer type [-Wincompatible-pointer-types]
  78. xa_cardinal, &prop_type, &prop_format, &items, &after, &borders);
  79. ^
  80. In file included from Window.c:749:0:
  81. /usr/include/X11/Xlib.h:2676:12: note: expected ‘unsigned char **’ but argument is of type ‘long int **’
  82. extern int XGetWindowProperty(
  83. ^~~~~~~~~~~~~~~~~~
  84. Window.c: In function ‘Window_Create’:
  85. Window.c:998:2: warning: implicit declaration of function ‘XkbSetDetectableAutoRepeat’ [-Wimplicit-function-declaration]
  86. XkbSetDetectableAutoRepeat(win_display, true, &supported);
  87. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  88. Window.c: In function ‘Window_GetWindowHandle’:
  89. Window.c:1052:45: warning: return makes pointer from integer without a cast [-Wint-conversion]
  90. void* Window_GetWindowHandle(void) { return win_handle; }
  91. ^~~~~~~~~~
  92. Window.c: In function ‘Window_GetWindowState’:
  93. Window.c:1062:33: warning: passing argument 12 of ‘XGetWindowProperty’ from incompatible pointer type [-Wincompatible-pointer-types]
  94. &prop_format, &items, &after, &data);
  95. ^
  96. In file included from Window.c:749:0:
  97. /usr/include/X11/Xlib.h:2676:12: note: expected ‘unsigned char **’ but argument is of type ‘Atom ** {aka long unsigned int **}’
  98. extern int XGetWindowProperty(
  99. ^~~~~~~~~~~~~~~~~~
  100. Window.c: In function ‘Window_ProcessEvents’:
  101. Window.c:1349:23: warning: passing argument 7 of ‘XChangeProperty’ from incompatible pointer type [-Wincompatible-pointer-types]
  102. PropModeReplace, data, 2);
  103. ^~~~
  104. In file included from Window.c:749:0:
  105. /usr/include/X11/Xlib.h:2068:12: note: expected ‘const unsigned char *’ but argument is of type ‘Atom * {aka long unsigned int *}’
  106. extern int XChangeProperty(
  107. ^~~~~~~~~~~~~~~
  108. /usr/bin/ld: cannot find -lx11
  109. collect2: error: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement