Re: autoreconf: g++ compiler options in configure.ac



Mark Hobley wrote:


Finally, comes the linking of the executable:

g++ -Ddebian -D_GNU_SOURCE -DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti
-fno-exceptions -Wall -Wno-trigraphs -g -O2 -o telnet telnet.o main.o
commands.o tn3270.o terminal.o authenc.o utilities.o network.o ring.o
sys_bsd.o genget.o environ.o netlink.o
telnet.o: In function `my_setupterm':
../../src/telnet.cc:612: undefined reference to `tgetent'
collect2: ld returned 1 exit status
The problem here is , that you don't link with libncurses (-lncurses) which
provides tgetent.

.



Relevant Pages