error compiling with Glib

hamdi Srihi hamdi_gl4 at hotmail.com
Fri Oct 5 03:43:12 PDT 2007


Hi all
when compiling the exemple-client.c given with dbus-glib package i found this errors

 gcc `pkg-config --cflags dbus-1 dbus-glib-1 glib-2.0` example-client.c /tmp/cc72WhpL.o: In function `main':example-client.c:(.text+0xa8): undefined reference to `g_type_init'example-client.c:(.text+0xb4): undefined reference to `g_log_set_always_fatal'example-client.c:(.text+0xc6): undefined reference to `g_log_set_always_fatal'example-client.c:(.text+0xd9): undefined reference to `dbus_g_bus_get'example-client.c:(.text+0x118): undefined reference to `dbus_g_proxy_new_for_name'example-client.c:(.text+0x120): undefined reference to `g_strv_get_type'example-client.c:(.text+0x167): undefined reference to `dbus_g_proxy_call'example-client.c:(.text+0x183): undefined reference to `g_value_array_get_type'example-client.c:(.text+0x1ba): undefined reference to `dbus_g_proxy_call'example-client.c:(.text+0x1ed): undefined reference to `dbus_g_type_get_map'example-client.c:(.text+0x224): undefined reference to `dbus_g_proxy_call'example-client.c:(.text+0x288): undefined reference to `g_strfreev'example-client.c:(.text+0x2ca): undefined reference to `g_value_init'example-client.c:(.text+0x2dc): undefined reference to `g_value_array_get_nth'example-client.c:(.text+0x2ed): undefined reference to `g_value_transform'example-client.c:(.text+0x304): undefined reference to `g_value_set_static_string'example-client.c:(.text+0x30f): undefined reference to `g_value_get_string'example-client.c:(.text+0x323): undefined reference to `g_value_array_get_nth'example-client.c:(.text+0x32d): undefined reference to `g_type_name'example-client.c:(.text+0x341): undefined reference to `g_print'example-client.c:(.text+0x35e): undefined reference to `g_value_array_free'example-client.c:(.text+0x385): undefined reference to `g_hash_table_foreach'example-client.c:(.text+0x390): undefined reference to `g_hash_table_destroy'example-client.c:(.text+0x3b3): undefined reference to `dbus_g_proxy_new_for_name'example-client.c:(.text+0x3ef): undefined reference to `dbus_g_proxy_call'example-client.c:(.text+0x424): undefined reference to `g_free'example-client.c:(.text+0x437): undefined reference to `g_type_check_instance_cast'example-client.c:(.text+0x43f): undefined reference to `g_object_unref'example-client.c:(.text+0x452): undefined reference to `g_type_check_instance_cast'example-client.c:(.text+0x45a): undefined reference to `g_object_unref'collect2: ld a retourné 1 code d'état d'exécution



i have modified a ennvirement variable PKG_CONFIG_PATH=/usr/lib/pkgconfig (here ther is all my .pc files)
so i dont know what's wrong.
Any idea?
thanx

_________________________________________________________________
Sur Windows Live Ideas, découvrez en exclusivité de nouveaux services en ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le marché !
http://ideas.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20071005/3a34fa5b/attachment.html 


More information about the dbus mailing list