[alternatives] building an app that uses gettext

Doug Henderson djndnbvg@gmail.com
Sun Jul 18 01:47:57 GMT 2021


HI,
I have not previously built an app that uses gettext. The relevant
parts of the  makefile are:

VERSION = 1.16
CFLAGS = -g -Wall -D_GNU_SOURCE
LDFLAGS += -g

alternatives: alternatives.o

alternatives.o: alternatives.c
    $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c alternatives.c

I am getting many

/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld:
/usr/src/alternatives-1.16-1.src/alternatives-1.16-1.x86_64/build/alternatives.c:1389:
undefined reference to `libintl_gettext'

messages while linking.

I have installed the gettext-devel and libgettextpo-devel and
libintl-devel packages, but I can't seem to properly rewrite the
CFLAGS or LDFLAGS despite several attempts.

Can someone recommend a simple cygwin package that uses gettext and
the cygintl-8.dll

TIA,
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com


More information about the Cygwin-apps mailing list