From owner-freebsd-questions Sun Feb 23 7:51:19 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 69AD037B401 for ; Sun, 23 Feb 2003 07:51:17 -0800 (PST) Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id D894A43FCB for ; Sun, 23 Feb 2003 07:51:15 -0800 (PST) (envelope-from flynn@energyhq.homeip.net) Received: from christine.energyhq.tk (christine.energyhq.tk [192.168.100.1]) by energyhq.homeip.net (Postfix) with SMTP id 8CD0FAF59B; Sun, 23 Feb 2003 16:51:15 +0100 (CET) Date: Sun, 23 Feb 2003 16:51:33 +0100 From: Miguel Mendez To: Sam Izzo Cc: freebsd-questions@freebsd.org Subject: Re: linker paths & /usr/local/lib Message-Id: <20030223165133.79e9aa2b.flynn@energyhq.homeip.net> In-Reply-To: <20030223152808.GA1391@kalgan.vic.optushome.com.au> References: <20030223152808.GA1391@kalgan.vic.optushome.com.au> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386--netbsdelf) X-Face: 1j}k*2E>Y\+C~E|/wehi[:dCM,{N7/uE 3o# P,{t7gA/qnovFDDuyQV.1hdT7&#d)q"xY33}{_GS>kk'S{O]nE$A`T|\4&p\&mQyexOLb8}FO List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.qeUYIjNLM8GfPc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 24 Feb 2003 02:28:09 +1100 Sam Izzo wrote: Howdy, > and the command-line: > > gcc test.c -o test -lHermes > You probably want something like this: cc -o test test.c -L/usr/local/lib -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. IIRC, ld.so.conf only affects the runtime dynamic linker, in a similar way LD_LIBRARY_PATH does. Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt EnergyHQ :: http://www.energyhq.tk Of course it runs NetBSD! --=.qeUYIjNLM8GfPc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (NetBSD) iD8DBQE+WO4InLctrNyFFPERAs54AKCaXkIxdbv0C4V2BRdV/Uvn2W3JwACghR1h z8UTkTKMiLtdeM9WjBUWO9o= =DdYQ -----END PGP SIGNATURE----- --=.qeUYIjNLM8GfPc-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message