[Lazarus] /usr/bin/ld: cannot find -lwhatever

David W Noon david.w.noon at googlemail.com
Sun Feb 21 18:41:03 CET 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 21 Feb 2016 15:46:37 +0100, Giuliano Colla
(giuliano.colla at fastwebnet.it) wrote about "[Lazarus] /usr/bin/ld:
cannot find -lwhatever" (in <56C9CDCD.6070100 at fastwebnet.it>):

[snip]
> I tried adding the path where the .o/.so file is located in the -Fl
> path of the Compiler Options.

You should not put .o files into library directories. You should use
the ar command to build a library and put the resulting .a file into
you library directory.

E.g.,

    ar -crs libsomething.a something.o

Then put libsomething.a into /usr/local/lib; then use ldconfig (or
SuSEconfig if you're using SuSE linux) to refresh the ld cache.

This is documented in man 1 ar.
- -- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.noon at googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlbJ9q8ACgkQogYgcI4W/5SJlgCgrNzNvYxYDBnyWT+AJyIVQjc2
qYUAoMzNBJ7OCWnyAbSmk71qxcMk05kL
=85Ws
-----END PGP SIGNATURE-----




More information about the Lazarus mailing list