<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi all<br>when compiling the exemple-client.c given with dbus-glib package i found this errors<br><br><span style="font-weight: bold;"> gcc `pkg-config --cflags dbus-1 dbus-glib-1 glib-2.0` example-client.c </span><br style="font-weight: bold;"><span style="font-weight: bold;">/tmp/cc72WhpL.o: In function `main':</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0xa8): undefined reference to `g_type_init'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0xb4): undefined reference to `g_log_set_always_fatal'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0xc6): undefined reference to `g_log_set_always_fatal'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0xd9): undefined reference to `dbus_g_bus_get'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x118): undefined reference to `dbus_g_proxy_new_for_name'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x120): undefined reference to `g_strv_get_type'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x167): undefined reference to `dbus_g_proxy_call'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x183): undefined reference to `g_value_array_get_type'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x1ba): undefined reference to `dbus_g_proxy_call'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x1ed): undefined reference to `dbus_g_type_get_map'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x224): undefined reference to `dbus_g_proxy_call'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x288): undefined reference to `g_strfreev'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x2ca): undefined reference to `g_value_init'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x2dc): undefined reference to `g_value_array_get_nth'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x2ed): undefined reference to `g_value_transform'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x304): undefined reference to `g_value_set_static_string'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x30f): undefined reference to `g_value_get_string'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x323): undefined reference to `g_value_array_get_nth'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x32d): undefined reference to `g_type_name'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x341): undefined reference to `g_print'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x35e): undefined reference to `g_value_array_free'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x385): undefined reference to `g_hash_table_foreach'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x390): undefined reference to `g_hash_table_destroy'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x3b3): undefined reference to `dbus_g_proxy_new_for_name'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x3ef): undefined reference to `dbus_g_proxy_call'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x424): undefined reference to `g_free'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x437): undefined reference to `g_type_check_instance_cast'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x43f): undefined reference to `g_object_unref'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x452): undefined reference to `g_type_check_instance_cast'</span><br style="font-weight: bold;"><span style="font-weight: bold;">example-client.c:(.text+0x45a): undefined reference to `g_object_unref'</span><br style="font-weight: bold;"><span style="font-weight: bold;">collect2: ld a retourné 1 code d'état d'exécution</span><br><br><br><br>i have modified a ennvirement variable PKG_CONFIG_PATH=/usr/lib/pkgconfig (here ther is all my .pc files)<br>so i dont know what's wrong.<br>Any idea?<br>thanx<br><br /><hr />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é ! <a href='http://ideas.live.com' target='_new'>Essayez-le !</a></body>
</html>