[Lazarus] Howto link to shared objects
RĂ¼diger Ranft
_rdi_ at web.de
Wed Mar 30 18:19:11 CEST 2011
Hi all,
how do I link against dynamic libraries in linux? Currently I rewrite
the linker script
INPUT(
-ldl
-lpthread
-lX11
-lgdk_pixbuf-2.0
-lgtk-x11-2.0
-lgdk-x11-2.0
-lgobject-2.0
-lglib-2.0
-lgthread-2.0
-lgmodule-2.0
-lpango-1.0
-latk-1.0
-lcairo
)
section by
INPUT(
-ldl
-lpthread
-lX11
/usr/lib/libgdk_pixbuf-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgdk-x11-2.0.so.0
/usr/lib/libgobject-2.0.so
/usr/lib/libglib-2.0.so
/usr/lib/libgthread-2.0.so
/usr/lib/libgmodule-2.0.so
/usr/lib/libpango-1.0.so.0
/usr/lib/libatk-1.0.so.0
/usr/lib/libcairo.so.2
)
which seems to work, but is a tedious work.
bye
Rudi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110330/9265b97e/attachment.sig>
More information about the Lazarus
mailing list