Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.c:32:59: error: expected ';', ',' or ')' before 'register'
- static void add_interface(void* data, struct wl_registry* register, uint32_t name, const char* interface, uint32_t version){
- ^~~~~~~~
- main.c:36:40: warning: missing terminating ' character
- wl_list_insert(&outputs, &node->link)'
- ^
- main.c:36:40: error: missing terminating ' character
- main.c:45:1: error: expected identifier or '(' before '}' token
- }
- ^
- main.c: In function 'get_xdg_name':
- main.c:50:15: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
- node->name = malloc(strlen(name) + 1);
- ^~~~~~
- main.c:50:15: warning: incompatible implicit declaration of built-in function 'malloc'
- main.c:50:15: note: include '<stdlib.h>' or provide a declaration of 'malloc'
- main.c:2:1:
- +#include <stdlib.h>
- main.c:50:15:
- node->name = malloc(strlen(name) + 1);
- ^~~~~~
- main.c:50:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
- node->name = malloc(strlen(name) + 1);
- ^~~~~~
- main.c:50:22: warning: incompatible implicit declaration of built-in function 'strlen'
- main.c:50:22: note: include '<string.h>' or provide a declaration of 'strlen'
- main.c:2:1:
- +#include <string.h>
- main.c:50:22:
- node->name = malloc(strlen(name) + 1);
- ^~~~~~
- main.c:51:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
- strcpy(node->name, name);
- ^~~~~~
- main.c:51:2: warning: incompatible implicit declaration of built-in function 'strcpy'
- main.c:51:2: note: include '<string.h>' or provide a declaration of 'strcpy'
- main.c: In function 'buffer':
- main.c:55:11: warning: incompatible implicit declaration of built-in function 'malloc'
- cframe = malloc(sizeof(struct wlr_frame));
- ^~~~~~
- main.c:55:11: note: include '<stdlib.h>' or provide a declaration of 'malloc'
- main.c: In function 'ready':
- main.c:73:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
- printf("Got the Frame!")
- ^~~~~~
- main.c:73:2: warning: incompatible implicit declaration of built-in function 'printf'
- main.c:73:2: note: include '<stdio.h>' or provide a declaration of 'printf'
- main.c:2:1:
- +#include <stdio.h>
- main.c:73:2:
- printf("Got the Frame!")
- ^~~~~~
- main.c:73:26: error: expected ';' before 'zwlr_screencopy_frame_v1_destroy'
- printf("Got the Frame!")
- ^
- ;
- zwlr_screencopy_frame_v1_destroy(frame);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- main.c:80:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
- exit(1)
- ^~~~
- main.c:80:2: warning: incompatible implicit declaration of built-in function 'exit'
- main.c:80:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
- main.c:80:9: error: expected ';' before '}' token
- exit(1)
- ^
- ;
- }
- ~
- main.c: In function 'failed':
- main.c:89:2: warning: incompatible implicit declaration of built-in function 'exit'
- exit(1)
- ^~~~
- main.c:89:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
- main.c:89:9: error: expected ';' before '}' token
- exit(1)
- ^
- ;
- }
- ~
- main.c: In function 'main':
- main.c:94:3: warning: incompatible implicit declaration of built-in function 'exit'
- exit(1)
- ^~~~
- main.c:94:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
- main.c:94:10: error: expected ';' before '}' token
- exit(1)
- ^
- ;
- }
- ~
- In file included from ../headers/includes.h:7,
- from main.c:1:
- main.c:97:2: error: expected ',' or ';' before '_Bool'
- bool show_cursor = strcmp(argv[2], "true") == 0;
- ^~~~
- main.c:100:22: error: expected identifier or '(' before 'register'
- struct wl_registry* register = wl_display_get_registry(wl);
- ^~~~~~~~
- main.c:102:13: error: 'add_interface' undeclared (first use in this function); did you mean 'wl_interface'?
- .global = add_interface,
- ^~~~~~~~~~~~~
- wl_interface
- main.c:102:13: note: each undeclared identifier is reported only once for each function it appears in
- main.c:105:27: error: expected expression before 'register'
- wl_registry_add_listener(register, &listener, NULL);
- ^~~~~~~~
- main.c:105:2: error: too few arguments to function 'wl_registry_add_listener'
- wl_registry_add_listener(register, &listener, NULL);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /usr/include/wayland-client.h:40,
- from ../headers/includes.h:10,
- from main.c:1:
- /usr/include/wayland-client-protocol.h:1034:1: note: declared here
- wl_registry_add_listener(struct wl_registry *wl_registry,
- ^~~~~~~~~~~~~~~~~~~~~~~~
- main.c:109:77: error: 'this' undeclared (first use in this function)
- struct zxdg_output_v1* xdg_output = zxdg_output_manager_v1_get_xdg_output(this->output_manager, node->output);
- ^~~~
- main.c:121:6: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
- if(strcmp(node->name,mon)) == 0){
- ^~~~~~
- main.c:121:30: error: expected expression before '==' token
- if(strcmp(node->name,mon)) == 0){
- ^~
- main.c:121:34: error: expected statement before ')' token
- if(strcmp(node->name,mon)) == 0){
- ^
- main.c:126:99: error: 'show_cursor' undeclared (first use in this function)
- struct zwlr_screencopy_frame_v1* frame = zwlr_screencopy_manager_v1_capture_output(copy_manager, show_cursor, current_output->output);
- ^~~~~~~~~~~
- main.c:127:43: error: conflicting types for 'listener'
- struct zwlr_screencopy_frame_v1_listener listener = {
- ^~~~~~~~
- main.c:101:30: note: previous definition of 'listener' was here
- struct wl_registry_listener listener = {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement