From owner-freebsd-questions Sun Feb 23 7:28:13 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD66D37B401 for ; Sun, 23 Feb 2003 07:28:11 -0800 (PST) Received: from mail021.syd.optusnet.com.au (mail021.syd.optusnet.com.au [210.49.20.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BE7443F85 for ; Sun, 23 Feb 2003 07:28:10 -0800 (PST) (envelope-from izzo@optusnet.com.au) Received: from kalgan.local (c18428.eburwd1.vic.optusnet.com.au [210.49.180.23]) by mail021.syd.optusnet.com.au (8.11.6/8.11.6) with ESMTP id h1NFS9000674 for ; Mon, 24 Feb 2003 02:28:09 +1100 Received: from kalgan.local (izzo@localhost [127.0.0.1]) by kalgan.local (8.12.6/8.12.6) with ESMTP id h1NFS9YC001579 for ; Mon, 24 Feb 2003 02:28:09 +1100 (EST) (envelope-from izzo@kalgan.local) Received: (from izzo@localhost) by kalgan.local (8.12.6/8.12.6/Submit) id h1NFS9FZ001576 for freebsd-questions@freebsd.org; Mon, 24 Feb 2003 02:28:09 +1100 (EST) Date: Mon, 24 Feb 2003 02:28:09 +1100 From: Sam Izzo To: freebsd-questions@freebsd.org Subject: linker paths & /usr/local/lib Message-ID: <20030223152808.GA1391@kalgan.vic.optushome.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm trying to compile ptc. Actually I'm trying to link against the Hermes pixel conversion library. With the following (ptc's configure creates this): char Hermes_ConverterInstance(); int main() { Hermes_ConverterInstance() ; return 0; } and the command-line: gcc test.c -o test -lHermes I get: /usr/libexec/elf/ld: cannot find -lHermes Hermes is installed in /usr/local/lib (from ports). The gcc/ld man pages and various sources on the web seem to indicate that /usr/local/lib isn't searched by default. `ldconfig -r' shows hermes in its list, however. Anyway man ld says that "for a native linker on an ELF system, if the file /etc/ld.so.conf exists, the list of directories found in that file" will be searched, so I added /usr/local/lib to that file (and /usr/X11R6/lib for good measure) however I still get the error. Any pointers as to what I'm doing wrong? Should this have gone to -newbies? :D cheers sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message