How to create a GString from a String?

I am using Rust with GLib and need to create a GString. How do I do that? fn example() -> GString { let hello = "Hello"; // How do I return hello as a GString? } >Solution : Use the documented function glib::GString::from_string_unchecked: GString::from_string_unchecked("Hello".into()) Or use glib::gstr to create a &’static GStr instead and turn… Read More How to create a GString from a String?

No reference to glib functions

everyone. I’m working on ubuntu, developing this application using the glib resources, I wrote a makefile like this: INCLUDES= -I ./headers FLAGS= -g PKGCONFIGCFLAGS= `pkg-config –cflags qmi-glib` `pkg-config –cflags gio-2.0` `pkg-config –cflags gobject-2.0` `pkg-config –cflags glib-2.0` `pkg-config –cflags gmodule-no-export-2.0` `pkg-config –cflags gmodule-2.0` PKGCONFIGLIBS= `pkg-config –libs qmi-glib` `pkg-config –libs gio-2.0` `pkg-config –libs glib-2.0` `pkg-config –libs gobject-2.0`… Read More No reference to glib functions