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

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

Re: problem with "#define printf libintl_printf" in "libintl.h"


From: Bruno Haible
Subject: Re: problem with "#define printf libintl_printf" in "libintl.h"
Date: Fri, 16 Jun 2006 17:43:11 +0200
User-agent: KMail/1.9.1

Hello,

Henry Nelson wrote:
> When I compile programs that will link to both libintl and libslang,
> warnings occur like:
> /usr/local/include/slang.h:899: warning: `libintl_printf' is an unrecognized 
> format function type

This warning is harmless; the only effect is that you get less gcc
warnings about buggy code.

You can get rid of this warning by changing /usr/local/include/slang.h
to use

        _SLATTRIBUTE_((__format__(__printf__,a,b)))

instead of

        _SLATTRIBUTE_((format(printf,a,b)))

> If I also try to link with libiconv, then a fatal error will occur.

More details, please?

> Would it be possible to not redefine printf in "libintl.h"?

Depends on the system / OS and programming language (C or C++?) that
you are using. On which system are you seeing the problems?

Bruno




reply via email to

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