autoconf
[Top][All Lists]
Advanced

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

__dgettext or dgettext__ ?????


From: Toni Moreno Giménez
Subject: __dgettext or dgettext__ ?????
Date: Tue, 11 Dec 2001 06:18:42 +0100

I have a really silly trouble, but i can't understand what is happening.

I have compiled lot of packages supporting GNU GETTEXT. 
But .. when compiling my own package. a linker error ocurrs.

/home/Toni/proyectos/cvs/nxsaudio/src/nxsa-support.c:122: undefined 
referencet to `dcgettext__'
/home/Toni/proyectos/cvs/nxsaudio/src/nxsa-support.c:131: undefined reference 


when I try ./configure --with-included-gettext 

Building is OK!.

the gettext macros are... (copied from a glade project)

#ifdef ENABLE_NLS
#  include <libintl.h>
#  undef _
#  define _(String) dgettext (PACKAGE, String)
#  ifdef gettext_noop
#    define N_(String) gettext_noop (String)
#  else
#    define N_(String) (String)
#  endif
#else
#  define textdomain(String) (String)
#  define gettext(String) (String)
#  define dgettext(Domain,Message) (Message)
#  define dcgettext(Domain,Message,Type) (Message)
#  define bindtextdomain(Domain,Directory) (Domain)
#  define _(String) (String)
#  define N_(String) (String)
#endif

What I'm doing wrong?

libc contains a __dgettext function but no a dgettext__ so linker can't find 
it.

and my /usr/lib/libintl.h 
contains.

extern char *dgettext (__const char *__domainname, __const char *__msgid) 
__THROW;

function exist!!!

I 'm  sure is a preprocessor error...... but I can't found it . 

Somebody can help me please?



-- 
=================
Toni Moreno Giménez
=================
Pje de las rosas  nº 22
Vilassar de Mar 
(Barcelona) España
CP: 08340



reply via email to

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