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



Mark Hobley schrieb:

Mark,

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

obviously someone forgot to include the proper header file(s), see "man
tgetent".

Check if there are these header files included in "src/telnet.cc":

#include <curses.h>
#include <term.h>

Guido

--
http://www.bayernline.de/~gscholz/
http://www.lug-burghausen.org/
.



Relevant Pages

  • Re: Scriptbasic - Compiling the generated C code
    ... compiler), which I have used in the past, tell me that it has a GCC ... a command line similar to Microsoft C. ... collect2: ld returned 1 exit status ...
    (comp.os.linux.development.system)
  • Re: PyQt-x11-gpl-3.16 compile error
    ... collect2: ld returned 1 exit status ... Checking to see if the qtnetwork module should be built... ... distributions, and may also work for other distributions. ...
    (comp.lang.python)
  • g++ on HPUX
    ... I get a linker error from HPs linker: ... collect2: ld returned 1 exit status ... How can I check the gcc installation/enivronment? ...
    (comp.sys.hp.hpux)
  • Re: [SQLite] Compiling in PHP statically?
    ... collect2: ld returned 1 exit status ... make: Leaving directory ... make clean ...
    (comp.lang.php)
  • Re: [SQLite] Compiling in PHP statically?
    ... collect2: ld returned 1 exit status ... make: Leaving directory ... make clean ...
    (comp.lang.php)