[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to link with libncursesw.a
From: |
Henry |
Subject: |
how to link with libncursesw.a |
Date: |
Sat, 18 Nov 2017 17:56:44 +0900 |
I've seen references on the Internet to building screen with
-lncursesw, but I can't seem to come up with the
proper incantation. There was no clue in config.log to indicate why
lncursesw was not picked up.
Manually editing Makefile to force the use of -lncursesw yielded the errors:
/usr/local/src/screen-4.6.2/display.c:715: undefined reference to `ospeed'
/usr/local/src/screen-4.6.2/display.c:716: undefined reference to `tgoto'
/usr/local/src/screen-4.6.2/display.c:716: undefined reference to `tputs'
I was able to build screen by changing Makefile to read:
CPPFLAGS = -I/usr/local/include -DETCSCREENRC='"$(ETCSCREENRC)"' \
-DSCREENENCODINGS='"$(SCREENENCODINGS)"'
LDFLAGS = -L/usr/local/lib -L/usr/lib
LIBS = -lncursesw -ltinfow -lelf -lutil -lcrypt
Is this correct?? (especially the addition of -ltinfow)
Is there someway to have the configure script create such a Makefile?
Many TIA,
Henry
- how to link with libncursesw.a,
Henry <=