I'm trying to compile a C program on CentOS.
it doesn't work and gives me this error:
code:
https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-own-name.c
compile command:
it doesn't work and gives me this error:
Code:
/tmp/ccJUzelS.o: In function `main': bus_own_name.c:69: undefined reference to `g_bus_own_name' bus_own_name.c:81: undefined reference to `g_bus_unown_name' collect2: ld returned 1 exit status
https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-own-name.c
compile command:
Code:
gcc -g `pkg-config --cflags dbus-glib-1 dbus-1 glib-2.0 gthread-2.0` bus_own_name.c `pkg-config --libs dbus-glib-1 dbus-1 glib-2.0 gthread-2.0`
Comment