On Dec 8, 2009, at 17:15, Andy Stewart wrote: > > But i got another error: > ------------------------------> error start > <------------------------------ > /usr/bin/ld -r -x -o HSdbus.o dbus/System/DBus/GConnection.o dbus/ > System/DBus/GError.o dbus/System/DBus/GMessage.o dbus/System/DBus/ > GMethod.o dbus/System/DBus/GProxy.o dbus/System/DBus.o dbus/System/ > DBus/Types.o dbus/System/DBus_stub.o > /usr/bin/ld: dbus/System/DBus_stub.o: No such file: No such file or > directory > ------------------------------> error end > <------------------------------ > > With above error, looks i don't need DBus_stub.o file. > > Infact, i don't understand why need *_stub.o file, and when time need > *_stub.o file (such as `vte/Graphics/UI/Gtk/Vte/Vte_stub.o`)? > > If don't use *_stub.o file, just remove > > libHSdbus_a_LIBADD = \ > dbus/System/DBus_stub.o > > is okay?
Yes. A _stub.o file is only created by ghc if the file contains a foreign import "wrapper" statement. In particular, you have to make sure that such a declaration is not between #ifdef ... #endif since then one gets a link error if the condition does not hold. Cheers, Axel. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel