On Sun, May 4, 2008 at 7:15 AM, Soulivanh Anothay <[EMAIL PROTECTED]> wrote: > Hello everybody, > I have just manually installed the newer version of GLib 2.16.3 , I > have checked the installation by issuing this command: "pkg-config > --modversion glib-2.0" and it returned: "2.16.3 > ". This should confirmed me that the previous installation of GLib > 2.16.3 was successful. > > However, here is my question. When I compiled my program, I got this > message: "undefined reference to `g_file_new_for_path' > ". > > I do not know the reason why? Please anyone who could give any suggestion? > > My code was just simple as this: > > GFile* g_file_source = NULL; > GFile* g_file_dest = NULL; > > g_file_source = g_file_new_for_path > ("/home/sanothay/mytest-directory"); > > g_file_dest = g_file_new_for_path ("/media/usb1"); > > gboolean return_val = g_file_move (g_file_source, g_file_dest, > G_FILE_COPY_OVERWRITE , NULL, NULL, NULL, &error);
Be sure you're including libs and cflags for gio-2.0 as well. -A. Walton > Thanks a lot in advance, > Cheers, > Soulivanh > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list