On Thu, May 18, 2006 at 08:49:41PM +0200, Enrico Forestieri wrote:

> On Thu, May 18, 2006 at 08:51:26AM -0500, Bo Peng wrote:
> 
> > Please test it. I am not in a hurry to apply.
> 
> I will test it on cygwin tonight.

Using nls=yes and gettext=included, it fails as follows:

g++ -o release/common/messages.o -c -I/usr/local/include -Iboost -Isrc 
src/messages.C
src/messages.C:83:33: ../intl/libintl.h: No such file or directory
src/messages.C: In member function `const std::string 
Messages::Pimpl::get(const std::string&) const':
src/messages.C:140: error: `bindtextdomain' undeclared (first use this function)
src/messages.C:140: error: (Each undeclared identifier is reported only once 
for each function it appears in.)
src/messages.C:150: error: `textdomain' undeclared (first use this function)
src/messages.C:151: error: `gettext' undeclared (first use this function)
scons: *** [release/common/messages.o] Error 1
scons: building terminated because of errors.

It seems that you have to provide for intl/libintl.h. This is an
excerpt from build/intl/Makefile:

libgnuintl.h: $(srcdir)/libgnuintl.h.in
        sed -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
            -e 's,@''HAVE_ASPRINTF''@,1,g' \
            -e 's,@''HAVE_SNPRINTF''@,1,g' \
            -e 's,@''HAVE_WPRINTF''@,0,g' \
          < $(srcdir)/libgnuintl.h.in > libgnuintl.h

libintl.h: libgnuintl.h
        cp libgnuintl.h libintl.h


-- 
Enrico

Reply via email to