Re: [Vala] Re : Include config.h before gi18n-lib.h
- From: gege2061 <gege2061 redaction-developpez com>
- To: "Frédéric Gaudy" <fred_gaudy yahoo fr>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Re : Include config.h before gi18n-lib.h
- Date: Tue, 2 Dec 2008 15:48:05 +0100
Hello,
For resolve this problem, I use c compiler option (gcc):
--include config.h
For valac:
--Xcc='--include config.h'
2008/12/2 Frédéric Gaudy
<fred_gaudy yahoo fr>
> In what order are your using ______; defined?
What is ______; ???
using Config; and --pkg config it is declared first.
Hi,
In what order are your using ______; defined?
Perhaps reordering these might result in a difference.
Dan
On 2-Dec-08, at 7:01 AM, Frédéric Gaudy wrote:
Hi,
I use gettext in my application with this code :
Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALE_DIR);
Intl.textdomain (Config.GETTEXT_PACKAGE);
Config class is corrected filled.
When compiling, it show me this error :
error: #error You must define GETTEXT_PACKAGE before including gi18n-lib.h. Did you forget to include config.h?
Looking into c file,
config.h is just after gi18n-lib.h.
#include <glib/gi18n-lib.h>
#include <config.h>
So, how to force config.h to be include before gi18n-lib.h?
Thanks for help.
_______________________________________________
Vala-list mailing list
Vala-list gnome orghttp://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
--
Nicolas Joseph
Responsable de la rubrique GTK+ de
developpez.com /
In charge of the GTK+ section on
developpez.com
http://nicolasj.developpez.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]