When I try to use gettext in vala I get not errors or warnings from vala but I get the following error from the c compiler:
/usr/include/glib-2.0/glib/gi18n-lib.h:29:2: error: #error You must define GETTEXT_PACKAGE before including gi18n-lib.h. Did you forget to include config.h?
How can I fix this?
[CCode(cname="GETTEXT_PACKAGE")] extern const string GETTEXT_PACKAGE;
instead ofconst string GETTEXT_PACKAGE = "...";
. – Gert