c - Error compiling with GLib -
i'm pretty new c programming, , trying work through exercises in '21st century c' second edition. i'm stuck on page 202, example 9-7, unicode.c. example starts with: #include <glib.h> #include <locale.h> //setlocale #include "string_utilities.h" #include "stopif.h" //frees instring you--we can't use else. char *localstring_to_utf8(char *instring){ gerror *e=null; setlocale(lc_all, ""); //get os's locale. char *out = g_locale_to_utf8(instring, -1, null, null, &e); free(instring); //done original stopif(!out, return null, "trouble converting locale utf-8."); stopif(!g_utf8_validate(out, -1, null), free(out); return null, "trouble: couldn't convert file valid utf-8 string."); return out; } when try compile with: c99 -i/usr/include/glib-2.0 -i/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -wall -o3 -lglib-2.0 unicode.c string_utilities.o -o unico