From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 26 13:18:03 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2CDD16A402 for ; Mon, 26 Mar 2007 13:18:03 +0000 (UTC) (envelope-from robe@prodal.telemar.cu) Received: from mail1.fishnavy.inf.cu (mail1.fishnavy.inf.cu [200.55.129.131]) by mx1.freebsd.org (Postfix) with ESMTP id A2C2513C45B for ; Mon, 26 Mar 2007 13:18:00 +0000 (UTC) (envelope-from robe@prodal.telemar.cu) Received: (from uucp@localhost) by mail1.fishnavy.inf.cu (8.11.7/8.11.7) id l2QDjhJ46632 for ; Mon, 26 Mar 2007 08:45:43 -0500 (EST) Received: from UNKNOWN(192.168.38.2), claiming to be "prodal.telemar.cu" via SMTP by mail1.fishnavy.inf.cu, id smtpdolsEW3; Mon Mar 26 13:45:33 2007 Received: from [192.168.200.31] by prodal.telemar.cu (MDaemon.PRO.v8.1.3.R) with ESMTP id md50000065673.msg for ; Mon, 26 Mar 2007 08:45:18 -0500 From: Robe To: freebsd-hackers Content-Type: text/plain Date: Sat, 24 Mar 2007 11:58:33 -0500 Message-Id: <1174755513.5742.10.camel@robe-ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: robe@prodal.telemar.cu X-Spam-Processed: prodal.telemar.cu, Mon, 26 Mar 2007 08:45:18 -0500 (not processed: message from valid local sender) X-MDRemoteIP: 192.168.200.31 X-Return-Path: robe@prodal.telemar.cu X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: prodal.telemar.cu, Mon, 26 Mar 2007 08:45:19 -0500 Subject: Missing library X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 13:18:03 -0000 Hi, I've read the article "libelf by Example" written by " Joseph Koshy". When I try to compile the example with the command he suggest: g++ CodeGenerator.i386.cpp -lelf I get the following error: /tmp/ccpfmJ4D.o: In function `elf_setshstrndx(Elf*, unsigned int)': CodeGenerator.i386.cpp:(.text+0x31): undefined reference to `_libelf_setshstrndx(Elf*, void*, int, unsigned int)' Does anybody know in which library reside that function? Thanx, Robe.