Unstable examples from gtk2.0-examples

linux linuxwsparcie at szeptem.pl
Tue Sep 8 22:22:18 UTC 2020


===================  $ gcc dial_test.o gtkdial.o -o dial_test `pkg-config --libs gtk+-2.0 `   /usr/bin/ld: gtkdial.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'  /usr/bin/ld: /lib/x86_64-linux-gnu/libm.so. error adding symbols: DSO missing from command line  collect2: error: ld returned 1 exit status    Solution:  $ gcc dial_test.o gtkdial.o -o dial_test `pkg-config --libs gtk+-2.0 ` -lm    stackoverflow.com stackoverflow.com  ==============================   $ make  gcc list.c -o list  `pkg-config gtk+-2.0 --cflags --libs`  list.c:2:10: fatal error: config.h: Nie ma takiego pliku ani katalogu      2 | #include "config.h"        |          ^~~~~~~~~~  compilation terminated.  make: *** [Makefile:13: list] Błąd 1    Solution:  Remove from file  #include "config.h"   ==============================   $ make  gcc rulers.c -o rulers -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATE -DGTK_DISABLE_DEPRECATED `pkg-config gtk+-2.0 --cflags --libs`  rulers.c: In function ‘main’:  rulers.c:45:13: warning: implicit declaration of function ‘gtk_hruler_new’; did you mean ‘gtk_table_new’? [-Wimplicit-function-declarati     45 |     hrule = gtk_hruler_new ();        |             ^~~~~~~~~~~~~~        |             gtk_table_new  rulers.c:45:11: warning: assignment to ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]     45 |     hrule = gtk_hruler_new ();        |           ^  rulers.c:46:5: warning: implicit declaration of function ‘gtk_ruler_set_metric’; did you mean ‘gtk_hsv_set_metrics’? [-Wimplicit-function-declarati     46 |     gtk_ruler_set_metric (GTK_RULER (hrule), GTK_PIXELS);        |     ^~~~~~~~~~~~~~~~~~~~        |     gtk_hsv_set_metrics  rulers.c:46:27: warning: implicit declaration of function ‘GTK_RULER’; did you mean ‘GTK_BUILDER’? [-Wimplicit-function-declarati     46 |     gtk_ruler_set_metric (GTK_RULER (hrule), GTK_PIXELS);        |               ^~~~~~~~~        |               GTK_BUILDER  ...    Solution:  Compile by hand:  gcc rulers.c -o rulers `pkg-config --libs gtk+-2.0 --cflags --libs`   ==============================   scribble-xinput.c:162:58: error: invalid type argument of ‘->’ (have ‘int’)    162 |       g_signal_connect_swapped (GTK_INPUT_DIALOG (inputd)->close_button,        |               ^~  /usr/include/glib-2.0/gobject/ note: in definition of macro ‘g_signal_connect_swapped’    544 |     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED)        |               ^~~~~~~~  scribble-xinput.c:166:49: error: invalid type argument of ‘->’ (have ‘int’)    166 |       gtk_widget_hide (GTK_INPUT_DIALOG (inputd)->save_button);        |               ^~  make: *** [Makefile:11: scribble-xinput] Błąd 1    Solution:  Compile by hand:  cc scribble-xinput.c -o scribble-xinput $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`  ==============================    $ ./wheelbarrow  Memory protection violation (memory dump)   $ ./pixmap  Memory protection violation (memory dump)  ==============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20200909/79faf23e/attachment.html>


More information about the Ubuntu-devel-discuss mailing list