Re: desperate c situation



On Fri, Dec 29, 2000 at 02:41:21PM +0100, Zbigniew Chyla wrote:
> > Why does gcc complain about an error there? I can't see
> > (...)
> >  bindtextdomain("gtranslator", GNOMELOCALEDIR);
> >  textdomain("gtranslator");
> Because both lines after preprocessing look like this:
> ("gtranslator");
> and this _is_ expression statement with no effect.
> Currently you're using useless macros bindtextdomain() and textdomain()
> defined in libgnome/gnome-i18n.h. If you want to access real functions, you
> should define ENABLE_NLS somewhere and this can be done be including
> <config.h>.
> Short answer: #include <config.h>

Hehe, it's included indirectly...

> If you don't want to see warnings even with NLS disabled, cast these
> epressions to void:
> (void) textdomain("gtranslator");
> Hope it helps.

Yes, the void casts are avoiding the error but even defining ENABLE_NLS before
 these lines doesn't help ...

Thanks ,-)

-- 
kabalak / kabalak gmx net / Fatih Demir
`-GNOME / ICQ:64241161 / GSM: +491749787080
 `-Editor / vim & Source Navigator




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