Date: Wed, 22 Nov 2000 12:42:09 -0600 (CST) From: Mike Eldridge <diz@cafes.net> To: Jamie Heckford <heckfordj@psi-domain.co.uk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: setting -l paths in gcc Message-ID: <Pine.LNX.4.10.10011221239570.12999-100000@mail.cafes.net> In-Reply-To: <00112218403600.12163@freefire.psi-domain.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10011221239570.12999-100000>