From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 16:06:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B3C637B401 for ; Sun, 13 Jul 2003 16:06:16 -0700 (PDT) Received: from 213-219-73-159-dsl.mus.estpak.ee (213-219-73-159-dsl.mus.estpak.ee [213.219.73.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEE6843F85 for ; Sun, 13 Jul 2003 16:06:14 -0700 (PDT) (envelope-from priitp@213-219-73-159-dsl.mus.estpak.ee) Received: from 213-219-73-159-dsl.mus.estpak.ee (localhost.meskaliin [127.0.0.1])h6E1kxUl058723 for ; Mon, 14 Jul 2003 01:47:00 GMT (envelope-from priitp@213-219-73-159-dsl.mus.estpak.ee) Received: (from priitp@localhost)h6E1kxMD058722 for hackers@freebsd.org; Mon, 14 Jul 2003 01:46:59 GMT Date: Mon, 14 Jul 2003 01:46:58 +0000 From: Priit Piipuu To: hackers@freebsd.org Message-ID: <20030714014658.GD5738@minerva.meskaliin.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 5.1-CURRENT i386 User-Agent: Mutt/1.5.4i Subject: libedit and g++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 23:06:16 -0000 Hi! There seems to be a problem using libedit from C++. Small test case: > cat test.c #include #include int main(void) { EditLine *ed; ed = el_init("foo", stdin, stdout, stderr); el_end(ed); return 0; } > gcc -ledit -ltermcap -o test test.c > g++ -ledit -ltermcap -o test test.c /var/tmp//ccAVIwg7.o: In function `main': /var/tmp//ccAVIwg7.o(.text+0x28): undefined reference to `el_init(char const*, __sFILE*, __sFILE*, __sFILE*)' /var/tmp//ccAVIwg7.o(.text+0x39): undefined reference to `el_end(editline*)' What did I miss? PS. > g++ --version g++ (GCC) 3.2.2 [FreeBSD] 20030205 (release) -- Priit Piipuu