Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Nov 2009 13:03:54 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Harald Servat <redcrash@gmail.com>
Cc:        freebsd-hackers@freebsd.org, f.loeber@googlemail.com, Oliver Mahmoudi <olivermahmoudi@gmail.com>, Gabor Kovesdan <gabor@freebsd.org>
Subject:   Re: writing a FreeBSD C library
Message-ID:  <86bpjih4yd.fsf@ds4.des.no>
In-Reply-To: <d825e0270911040102u40e10af7m16bc1137b48173fe@mail.gmail.com> (Harald Servat's message of "Wed, 4 Nov 2009 10:02:25 %2B0100")
References:  <6b4b2d2c0910261308i367569dbg887d7c713bf20ad1@mail.gmail.com> <4AE60F70.9070808@FreeBSD.org> <6b4b2d2c0911040031h2175011dy949e4d368ffbb997@mail.gmail.com> <d825e0270911040102u40e10af7m16bc1137b48173fe@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Harald Servat <redcrash@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bpjih4yd.fsf>