[Vala] dbus-glib-1.vapi Proxy Class



Hi,

I'm trying to use the 

"Proxy.for_name (Connection! connection, string! name, string! path,
string! interface_)" 

constructor of the Proxy class from dbus-glib-1.vapi. I want to call a
method from openobex dbus-api.
This is my code to create the Proxy object:


        DBus.Connection conn = DBus.Bus.get (DBus.BusType.SYSTEM);

        DBus.Proxy proxy = new DBus.Proxy.for_name (conn, "org.openobex",
"/org/openobex", "org.openobex.Manager");



When the code is comliled with:


        
        valac -g --pkg dbus-glib-1 -o ../bin/programm programm.vala


I get this error: 

 
        undefined reference to `dbus_g_proxy_free'
        collect2: ld gab 1 als Ende-Status zurück
        error: cc exited with status 256
         


I can't find "dbus_g_proxy_free" in any of the underlying c code files.
Has anybody had the same problem and can help me?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]