From owner-freebsd-questions Wed Nov 22 10:42:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.cafes.net (mail.cafes.net [207.65.182.25]) by hub.freebsd.org (Postfix) with ESMTP id 52ED937B4C5 for ; Wed, 22 Nov 2000 10:42:40 -0800 (PST) Received: from mail.cafes.net (mail.cafes.net [207.65.182.25]) by mail.cafes.net (8.9.3/8.9.3) with ESMTP id MAA01223; Wed, 22 Nov 2000 12:42:09 -0600 Date: Wed, 22 Nov 2000 12:42:09 -0600 (CST) From: Mike Eldridge To: Jamie Heckford Cc: freebsd-questions@FreeBSD.ORG Subject: Re: setting -l paths in gcc In-Reply-To: <00112218403600.12163@freefire.psi-domain.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message