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
