From owner-freebsd-questions Wed Nov 22 10:55:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gate.trident-uk.co.uk (mail.trident-uk.co.uk [195.166.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 8414B37B4CF for ; Wed, 22 Nov 2000 10:55:49 -0800 (PST) Received: from [194.207.93.139] by gate.trident-uk.co.uk for diz@cafes.net id SAA25697; Wed Nov 22 18:54:26 2000 Organization: Psi-Domain Ltd. Subject: Re: setting -l paths in gcc Date: Wed, 22 Nov 2000 18:57:01 +0000 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: In-Reply-To: MIME-Version: 1.0 Message-Id: <00112218595800.00214@freefire.psi-domain.co.uk> Content-Transfer-Encoding: 8bit To: Mike Eldridge From: Jamie Heckford Reply-To: heckfordj@psi-domain.co.uk Cc: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The problem is I am trying to install Imlib2. the configure script checks for -lttf, and when it can't find it complains that libttf is not installed, which I do have installed under /usr/local/lib/libttf.so. when i type gcc -lttf it complains: /usr/libexec/elf/ld: cannot find -lttf How do i set -lttf to point at the /usr/local/lib/libttf.so so the configure script finds it?? Thanks, J On Wed, 22 Nov 2000, you wrote: > On Wed, 22 Nov 2000, Jamie Heckford wrote: > > Hi, > > > > If i want to make a custom -l in gcc, for example gcc -lmylib, where is the > > config file i specify this in? > > Your question doesn't exactly make sense, but from your subject, it > appears you are wanting to specify the library path. > > To specify additional library search paths on the command line, use -L: > gcc -L/path/to/libs -o prog prog.c -lmylib > > Mike > > ----------------------------------------------------- > Save the whales. Feed the hungry. Free the mallocs. -- Jamie Heckford Chief Network Engineer Psi-Domain - Innovative Linux Solutions. Ask Us How. =================================== email: heckfordj@psi-domain.co.uk web: http://www.psi-domain.co.uk/ tel: +44 (0)1737 789 246 fax: +44 (0)1737 789 245 mobile: +44 (0)7779 646 529 =================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message