writing a FreeBSD C library

Dag-Erling Smørgrav des at des.no
Wed Nov 4 12:03:57 UTC 2009


Harald Servat <redcrash at 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ørgrav - des at des.no


More information about the freebsd-hackers mailing list