Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2009 14:52:51 +0100
From:      Harald Servat <redcrash@gmail.com>
To:        =?ISO-8859-1?Q?Dag=2DErling_Sm=F8rgrav?= <des@des.no>
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:  <d825e0270911040552x88769eai7aa01a4063e86d01@mail.gmail.com>
In-Reply-To: <86bpjih4yd.fsf@ds4.des.no>
References:  <6b4b2d2c0910261308i367569dbg887d7c713bf20ad1@mail.gmail.com> <4AE60F70.9070808@FreeBSD.org> <6b4b2d2c0911040031h2175011dy949e4d368ffbb997@mail.gmail.com> <d825e0270911040102u40e10af7m16bc1137b48173fe@mail.gmail.com> <86bpjih4yd.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <des@des.no>

> 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
> --
> 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?!



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