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

On Sun, 21 Feb 2016 15:46:37 +0100, Giuliano Colla
(giuliano.co...@fastwebnet.it) wrote about "[Lazarus] /usr/bin/ld:
cannot find -lwhatever" (in <56c9cdcd.6070...@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.n...@googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

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

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

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to