bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Still not able to get gettext working - SOLVED


From: Bruno Haible
Subject: Re: Still not able to get gettext working - SOLVED
Date: Tue, 13 Nov 2007 01:02:08 +0100
User-agent: KMail/1.5.4

David Bruce wrote in
<http://lists.gnu.org/archive/html/bug-gnu-utils/2007-11/msg00052.html>:
> It appears 
> that "config.h" must be included before "gettext.h" for the program to work 
> correctly. By moving '#include "config.h"' to the top of my "global" header 
> file, the problem was eliminated.  It seems that the #define's in "config.h" 
> are needed for "gettext.h" to work properly (does that seem plausible?)

Yes, this is not only plausible. This is how it works. How else could
gettext.h be informed about the setting of ENABLE_NLS?

> I couldn't find mention of this problem in either the gettext manual or the 
> gettext FAQ, nor via Google - if this ordering requirement is generally true 
> and not just some quirk of my program or machine, I think it should be in the 
> documentation.

Thank you for this suggestion. <config.h> is a general facility for all programs
that use autoconf, and the ordering requirement is documented in the autoconf
manual:

<http://www.gnu.org/software/autoconf/manual/html_node/Configuration-Headers.html>
second paragraph.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]