public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [alternatives] building an app that uses gettext
@ 2021-07-18  1:47 Doug Henderson
  2021-07-18  8:23 ` Marco Atzeri
  2021-07-18 15:21 ` Brian Inglis
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Henderson @ 2021-07-18  1:47 UTC (permalink / raw)
  To: Cygwin Apps

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-18 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18  1:47 [alternatives] building an app that uses gettext Doug Henderson
2021-07-18  8:23 ` Marco Atzeri
2021-07-18 15:21 ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).