Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. main.c:32:59: error: expected ';', ',' or ')' before 'register'
  2. static void add_interface(void* data, struct wl_registry* register, uint32_t name, const char* interface, uint32_t version){
  3. ^~~~~~~~
  4. main.c:36:40: warning: missing terminating ' character
  5. wl_list_insert(&outputs, &node->link)'
  6. ^
  7. main.c:36:40: error: missing terminating ' character
  8. main.c:45:1: error: expected identifier or '(' before '}' token
  9. }
  10. ^
  11. main.c: In function 'get_xdg_name':
  12. main.c:50:15: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
  13. node->name = malloc(strlen(name) + 1);
  14. ^~~~~~
  15. main.c:50:15: warning: incompatible implicit declaration of built-in function 'malloc'
  16. main.c:50:15: note: include '<stdlib.h>' or provide a declaration of 'malloc'
  17. main.c:2:1:
  18. +#include <stdlib.h>
  19.  
  20. main.c:50:15:
  21. node->name = malloc(strlen(name) + 1);
  22. ^~~~~~
  23. main.c:50:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  24. node->name = malloc(strlen(name) + 1);
  25. ^~~~~~
  26. main.c:50:22: warning: incompatible implicit declaration of built-in function 'strlen'
  27. main.c:50:22: note: include '<string.h>' or provide a declaration of 'strlen'
  28. main.c:2:1:
  29. +#include <string.h>
  30.  
  31. main.c:50:22:
  32. node->name = malloc(strlen(name) + 1);
  33. ^~~~~~
  34. main.c:51:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
  35. strcpy(node->name, name);
  36. ^~~~~~
  37. main.c:51:2: warning: incompatible implicit declaration of built-in function 'strcpy'
  38. main.c:51:2: note: include '<string.h>' or provide a declaration of 'strcpy'
  39. main.c: In function 'buffer':
  40. main.c:55:11: warning: incompatible implicit declaration of built-in function 'malloc'
  41. cframe = malloc(sizeof(struct wlr_frame));
  42. ^~~~~~
  43. main.c:55:11: note: include '<stdlib.h>' or provide a declaration of 'malloc'
  44. main.c: In function 'ready':
  45. main.c:73:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  46. printf("Got the Frame!")
  47. ^~~~~~
  48. main.c:73:2: warning: incompatible implicit declaration of built-in function 'printf'
  49. main.c:73:2: note: include '<stdio.h>' or provide a declaration of 'printf'
  50. main.c:2:1:
  51. +#include <stdio.h>
  52.  
  53. main.c:73:2:
  54. printf("Got the Frame!")
  55. ^~~~~~
  56. main.c:73:26: error: expected ';' before 'zwlr_screencopy_frame_v1_destroy'
  57. printf("Got the Frame!")
  58. ^
  59. ;
  60. zwlr_screencopy_frame_v1_destroy(frame);
  61. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. main.c:80:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  63. exit(1)
  64. ^~~~
  65. main.c:80:2: warning: incompatible implicit declaration of built-in function 'exit'
  66. main.c:80:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
  67. main.c:80:9: error: expected ';' before '}' token
  68. exit(1)
  69. ^
  70. ;
  71. }
  72. ~
  73. main.c: In function 'failed':
  74. main.c:89:2: warning: incompatible implicit declaration of built-in function 'exit'
  75. exit(1)
  76. ^~~~
  77. main.c:89:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
  78. main.c:89:9: error: expected ';' before '}' token
  79. exit(1)
  80. ^
  81. ;
  82. }
  83. ~
  84. main.c: In function 'main':
  85. main.c:94:3: warning: incompatible implicit declaration of built-in function 'exit'
  86. exit(1)
  87. ^~~~
  88. main.c:94:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
  89. main.c:94:10: error: expected ';' before '}' token
  90. exit(1)
  91. ^
  92. ;
  93. }
  94. ~
  95. In file included from ../headers/includes.h:7,
  96. from main.c:1:
  97. main.c:97:2: error: expected ',' or ';' before '_Bool'
  98. bool show_cursor = strcmp(argv[2], "true") == 0;
  99. ^~~~
  100. main.c:100:22: error: expected identifier or '(' before 'register'
  101. struct wl_registry* register = wl_display_get_registry(wl);
  102. ^~~~~~~~
  103. main.c:102:13: error: 'add_interface' undeclared (first use in this function); did you mean 'wl_interface'?
  104. .global = add_interface,
  105. ^~~~~~~~~~~~~
  106. wl_interface
  107. main.c:102:13: note: each undeclared identifier is reported only once for each function it appears in
  108. main.c:105:27: error: expected expression before 'register'
  109. wl_registry_add_listener(register, &listener, NULL);
  110. ^~~~~~~~
  111. main.c:105:2: error: too few arguments to function 'wl_registry_add_listener'
  112. wl_registry_add_listener(register, &listener, NULL);
  113. ^~~~~~~~~~~~~~~~~~~~~~~~
  114. In file included from /usr/include/wayland-client.h:40,
  115. from ../headers/includes.h:10,
  116. from main.c:1:
  117. /usr/include/wayland-client-protocol.h:1034:1: note: declared here
  118. wl_registry_add_listener(struct wl_registry *wl_registry,
  119. ^~~~~~~~~~~~~~~~~~~~~~~~
  120. main.c:109:77: error: 'this' undeclared (first use in this function)
  121. struct zxdg_output_v1* xdg_output = zxdg_output_manager_v1_get_xdg_output(this->output_manager, node->output);
  122. ^~~~
  123. main.c:121:6: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  124. if(strcmp(node->name,mon)) == 0){
  125. ^~~~~~
  126. main.c:121:30: error: expected expression before '==' token
  127. if(strcmp(node->name,mon)) == 0){
  128. ^~
  129. main.c:121:34: error: expected statement before ')' token
  130. if(strcmp(node->name,mon)) == 0){
  131. ^
  132. main.c:126:99: error: 'show_cursor' undeclared (first use in this function)
  133. struct zwlr_screencopy_frame_v1* frame = zwlr_screencopy_manager_v1_capture_output(copy_manager, show_cursor, current_output->output);
  134. ^~~~~~~~~~~
  135. main.c:127:43: error: conflicting types for 'listener'
  136. struct zwlr_screencopy_frame_v1_listener listener = {
  137. ^~~~~~~~
  138. main.c:101:30: note: previous definition of 'listener' was here
  139. struct wl_registry_listener listener = {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement