To solve this problem I had to add the command -X -DGETTEXT_PACKAGE="..." to the valac command and add const string GETTEXT_PACKAGE = "..."; to the beginning of my source file.
If I do not add this to the beginning of my source file, for some reason I get many undeclared (first use in this function) errors undeclared (first use in this function) from the C compiler.
However, I get a warning from the C compiler to override GETTEXT_PACKAGE.
source share