From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 4 12:03:57 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEC991065672; Wed, 4 Nov 2009 12:03:57 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 7CAD58FC1C; Wed, 4 Nov 2009 12:03:57 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id AA2AA6D41B; Wed, 4 Nov 2009 12:03:55 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 7061B844E9; Wed, 4 Nov 2009 13:03:55 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Harald Servat References: <6b4b2d2c0910261308i367569dbg887d7c713bf20ad1@mail.gmail.com> <4AE60F70.9070808@FreeBSD.org> <6b4b2d2c0911040031h2175011dy949e4d368ffbb997@mail.gmail.com> Date: Wed, 04 Nov 2009 13:03:54 +0100 In-Reply-To: (Harald Servat's message of "Wed, 4 Nov 2009 10:02:25 +0100") Message-ID: <86bpjih4yd.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, f.loeber@googlemail.com, Oliver Mahmoudi , Gabor Kovesdan Subject: Re: writing a FreeBSD C library X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2009 12:03:57 -0000 Harald Servat writes: > In addition, the -l X option in the gcc compiler looks for libX.[a|so] = in > the all specified paths defined by -L, so in your first command > gcc -o aprog aprog.c -I ~/mylib/ > you're making gcc to look for for something called lib~/mylib/.[a|so] > which I doubt it can be found. You're confusing -l with -I... but the rest of your email is correct. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no