Difference between revisions of "Linker message: cannot find -l"

From Lazarus wiki
Jump to navigationJump to search
Line 6: Line 6:
 
== SuSE ==
 
== SuSE ==
  
[[Lazarus_Faq#I_have_SuSE_and_I_get_.2Fusr.2Fbin.2Fld:_cannot_find_-lgtk_Error:_Error_while_linking]]
+
SuSE installs the gtk devel libs under /opt/gnome/lib (or /opt/gnome/lib64 for 64 bits), which is not in the standard lib path. Simply add it to your /etc/fpc.cfg. (-Fl/opt/gnome/lib).

Revision as of 18:52, 17 May 2006

For example:

 /usr/bin/ld: cannot find -lgdk

This means an external library was not found. In the above case under Linux it means the libgdk.so or libgdk.a was not found. Normally this means, you forgot to install the development package of this library. In the case of gdk the package is called under the Fedora Core distribution: 'gtk+-devel-1.2.10-33'.

SuSE

SuSE installs the gtk devel libs under /opt/gnome/lib (or /opt/gnome/lib64 for 64 bits), which is not in the standard lib path. Simply add it to your /etc/fpc.cfg. (-Fl/opt/gnome/lib).