[Vala] Using gettext




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all:

I'm creating a program using Valide and Vala, and I want to use
gettext. Unfortunately, I receive this error:

In file included from
/home/raster/workspace/cronopete/cronopete.vala.c:33:0:
/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?
/home/raster/workspace/cronopete/cronopete.vala.c: In function
?cp_callback_menuSystem_popup?:
/home/raster/workspace/cronopete/cronopete.vala.c:527:11: error:
?GETTEXT_PACKAGE? undeclared (first use in this function)
/home/raster/workspace/cronopete/cronopete.vala.c:527:11: note: each
undeclared identifier is reported only once for each function it
appears in
error: cc exited with status 256

I tried the Sampala sample code ( https://github.com/tadeboro/Sampala
), and it compiles with the Makefile, but returns the same error if I
try to compile it directly with vala.

How can I use it?

Thanks.

- -- 
Nos leemos
                 RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4vQyAACgkQXEZvyfy1ha/1+QCeJdXpaHroGMUJ6Gve7vpbE7RN
8+8AoMw9oV5SU0w4GKgQ5wCOXYJEp4Pn
=lYZ9
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]