Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/Downloads/ClassiCube-master/src $ gcc *.c -o ClassiCube -lx11 -lpthread -lGL -lm -lcurl -lopenal -ldl
- Chat.c: In function ‘Chat_OpenLog’:
- Chat.c:125:27: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- Chat_LogStream.Meta.File = NULL;
- ^
- ExtMath.c: In function ‘Math_AbsI’:
- ExtMath.c:11:36: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
- int Math_AbsI(int x) { return abs(x); /* MSVC intrinsic */ }
- ^~~
- LWidgets.c:1053:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- LTable_MouseDown, LTable_StopDragging, /* Select */
- ^~~~~~~~~~~~~~~~~~~
- LWidgets.c:1053:20: note: (near initialization for ‘ltable_VTABLE.OnUnselect’)
- Platform.c: In function ‘Platform_TextDraw’:
- Platform.c:1186:9: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
- glyph = glyphs[(uint8_t)text.buffer[i]];
- ^
- Platform.c:1196:30: warning: passing argument 2 of ‘FT_Get_Glyph’ from incompatible pointer type [-Wincompatible-pointer-types]
- FT_Get_Glyph(face->glyph, &glyph); /* TODO: Check error */
- ^
- In file included from Platform.c:14:0:
- freetype/ftglyph.h:235:3: note: expected ‘struct FT_GlyphRec_ **’ but argument is of type ‘struct FT_BitmapGlyphRec_ **’
- FT_Get_Glyph( FT_GlyphSlot slot,
- ^~~~~~~~~~~~
- Platform.c:1197:36: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
- glyphs[(uint8_t)text.buffer[i]] = glyph;
- ^
- Program.c: In function ‘main’:
- Program.c:135:48: warning: passing argument 2 of ‘Platform_GetCommandLineArgs’ from incompatible pointer type [-Wincompatible-pointer-types]
- argsCount = Platform_GetCommandLineArgs(argc, argv, args);
- ^~~~
- In file included from Program.c:2:0:
- Platform.h:50:6: note: expected ‘const char **’ but argument is of type ‘char **’
- int Platform_GetCommandLineArgs(int argc, STRING_REF const char** argv, String* args);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- Resources.c: In function ‘SoundPatcher_DecodeAudio’:
- Resources.c:617:24: warning: passing argument 2 of ‘Stream_Write’ from incompatible pointer type [-Wincompatible-pointer-types]
- res = Stream_Write(s, ctx, 44);
- ^~~
- In file included from Resources.c:6:0:
- Stream.h:46:12: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘struct VorbisState *’
- ReturnCode Stream_Write(struct Stream* s, const uint8_t* buffer, uint32_t count);
- ^~~~~~~~~~~~
- Resources.c:631:25: warning: passing argument 2 of ‘Stream_Write’ from incompatible pointer type [-Wincompatible-pointer-types]
- res = Stream_Write(s, samples, count * 2);
- ^~~~~~~
- In file included from Resources.c:6:0:
- Stream.h:46:12: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘int16_t * {aka short int *}’
- ReturnCode Stream_Write(struct Stream* s, const uint8_t* buffer, uint32_t count);
- ^~~~~~~~~~~~
- Screens.c: In function ‘GeneratingScreen_Render’:
- Screens.c:680:37: warning: passing argument 2 of ‘String_AppendConst’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- String_AppendConst(&s->MessageStr, state);
- ^~~~~
- In file included from Screens.h:3:0,
- from Screens.c:1:
- String.h:106:13: note: expected ‘const char *’ but argument is of type ‘const volatile char *’
- CC_API void String_AppendConst(String* str, const char* src);
- ^~~~~~~~~~~~~~~~~~
- Stream.c: In function ‘Stream_FileClose’:
- Stream.c:98:15: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- s->Meta.File = NULL;
- ^
- Stream.c: In function ‘Stream_WriteLine’:
- Stream.c:505:6: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- cur = Platform_NewLine;
- ^
- String.c: In function ‘String_FromReadonly’:
- String.c:29:21: warning: passing argument 1 of ‘String_Init’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- return String_Init(buffer, len, len);
- ^~~~~~
- In file included from String.c:1:0:
- String.h:28:25: note: expected ‘char *’ but argument is of type ‘const char *’
- static CC_INLINE String String_Init(STRING_REF char* buffer, int length, int capacity) {
- ^~~~~~~~~~~
- Window.c: In function ‘Window_RefreshBorders’:
- Window.c:896:58: warning: passing argument 12 of ‘XGetWindowProperty’ from incompatible pointer type [-Wincompatible-pointer-types]
- xa_cardinal, &prop_type, &prop_format, &items, &after, &borders);
- ^
- In file included from Window.c:749:0:
- /usr/include/X11/Xlib.h:2676:12: note: expected ‘unsigned char **’ but argument is of type ‘long int **’
- extern int XGetWindowProperty(
- ^~~~~~~~~~~~~~~~~~
- Window.c: In function ‘Window_Create’:
- Window.c:998:2: warning: implicit declaration of function ‘XkbSetDetectableAutoRepeat’ [-Wimplicit-function-declaration]
- XkbSetDetectableAutoRepeat(win_display, true, &supported);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- Window.c: In function ‘Window_GetWindowHandle’:
- Window.c:1052:45: warning: return makes pointer from integer without a cast [-Wint-conversion]
- void* Window_GetWindowHandle(void) { return win_handle; }
- ^~~~~~~~~~
- Window.c: In function ‘Window_GetWindowState’:
- Window.c:1062:33: warning: passing argument 12 of ‘XGetWindowProperty’ from incompatible pointer type [-Wincompatible-pointer-types]
- &prop_format, &items, &after, &data);
- ^
- In file included from Window.c:749:0:
- /usr/include/X11/Xlib.h:2676:12: note: expected ‘unsigned char **’ but argument is of type ‘Atom ** {aka long unsigned int **}’
- extern int XGetWindowProperty(
- ^~~~~~~~~~~~~~~~~~
- Window.c: In function ‘Window_ProcessEvents’:
- Window.c:1349:23: warning: passing argument 7 of ‘XChangeProperty’ from incompatible pointer type [-Wincompatible-pointer-types]
- PropModeReplace, data, 2);
- ^~~~
- In file included from Window.c:749:0:
- /usr/include/X11/Xlib.h:2068:12: note: expected ‘const unsigned char *’ but argument is of type ‘Atom * {aka long unsigned int *}’
- extern int XChangeProperty(
- ^~~~~~~~~~~~~~~
- /usr/bin/ld: cannot find -lx11
- collect2: error: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement