From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 4 13:52:53 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 733C7106568D; Wed, 4 Nov 2009 13:52:53 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id C8A738FC23; Wed, 4 Nov 2009 13:52:52 +0000 (UTC) Received: by bwz5 with SMTP id 5so9112140bwz.3 for ; Wed, 04 Nov 2009 05:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=KVpHlYV0vjDAzMFJSbuldvINAlKvTGfC8OOYY4CEivU=; b=OtTo2Rrq+wBbxg1IanZVAvfrGgVuFrGXrAuKOX7m4Sm+kMlh4xUKvcCdLNCptinlV1 aS4CgBwsUgTI75ey/Q3GJLAuGyiZ7Zk17LQ5/5kbDJcdCavQrkaERxJWzXaINU0JlPD0 DvXmHDmHgbW3K6OAqk4FpIxKvA43waD1Jyqg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uQEjbGRaxgaNII2spw7CJYGhsrBWY/dOMbc3bY7xgJAnWOteU6w95tyer2d3jet3hw kW3S38ptN0hMRNspDNuU9Jhyj1uMscduVJLks3toMWx+un/IkYjOt+6dOeyYsNvUcTLD G8y27JE58w/0x6TDcHlePGI+CAC1PEgj44jRM= MIME-Version: 1.0 Received: by 10.204.29.15 with SMTP id o15mr1457287bkc.145.1257342771742; Wed, 04 Nov 2009 05:52:51 -0800 (PST) In-Reply-To: <86bpjih4yd.fsf@ds4.des.no> References: <6b4b2d2c0910261308i367569dbg887d7c713bf20ad1@mail.gmail.com> <4AE60F70.9070808@FreeBSD.org> <6b4b2d2c0911040031h2175011dy949e4d368ffbb997@mail.gmail.com> <86bpjih4yd.fsf@ds4.des.no> Date: Wed, 4 Nov 2009 14:52:51 +0100 Message-ID: From: Harald Servat To: =?ISO-8859-1?Q?Dag=2DErling_Sm=F8rgrav?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 13:52:53 -0000 Oh, yes! You're right DES. They look the same to me here in the web-browser :) Oliver, regarding the Dag-Erling correction, the -I option in gcc refers to include header files (typically files ended with .h), not for naming libraries as I mentioned. Regards. 2009/11/4 Dag-Erling Sm=F8rgrav > 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 > -- > Dag-Erling Sm=F8rgrav - des@des.no > --=20 _________________________________________________________________ Fry: You can see how I lived before I met you. Bender: You lived before you met me?! Fry: Yeah, lots of people did. Bender: Really?!