mpsijm / gyazo-gif-for-linux

A script for recording a GIF with Byzanz and uploading it to Gyazo.
GNU General Public License v3.0
8 stars 4 forks source link

does not compile... #1

Closed lemmy04 closed 5 years ago

lemmy04 commented 5 years ago
lemmy@kumiko:~/Work/gyazo-gif-for-linux> make
cc -Wall -Wno-deprecated-declarations `pkg-config --cflags gtk+-3.0` -o byzanz-get-rect byzanz-get-rect.c `pkg-config --libs gtk+-3.0`
byzanz-get-rect.c: In function ‘screenshot_select_area_x11’:
byzanz-get-rect.c:267:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
     exit(1);
     ^~~~
byzanz-get-rect.c:267:5: warning: incompatible implicit declaration of built-in function ‘exit’
byzanz-get-rect.c:267:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
byzanz-get-rect.c: In function ‘main’:
byzanz-get-rect.c:277:10: error: ‘EXIT_SUCCESS’ undeclared (first use in this function); did you mean ‘G_IS_SUBPROCESS’?
   return EXIT_SUCCESS;
          ^~~~~~~~~~~~
          G_IS_SUBPROCESS
byzanz-get-rect.c:277:10: note: each undeclared identifier is reported only once for each function it appears in

What is missing here?

mpsijm commented 5 years ago

Hm, it works on my machine. :sweat_smile: The compiler warnings seem to indicate that #include <stdlib.h> is missing. Can you try adding that on line 23 (before #include <gtk/gtk.h>) and see if it works?

lemmy04 commented 5 years ago

I sent you a pull request :)