[fpc-pascal]/usr/bin/ld: cannot find -lgd errorr

Andy Sy andy at netfxph.com
Mon Sep 29 23:01:08 CEST 2003

I've noticed that in many of the example programs that
come with FreePascal, trying to compile them results in
an link error where ld claims it cannot find a particular
library (I'm getting one for gd) even though the
corresponding library file is present in


 From searching the archives, it seems that this is due to
the actual library itself missing (at least for other
libraries like mysql and postgres).  What then are the
file like gd.o, libgd.a, libpgd.ppu for?  Are they just
stubs?  And what exactly do they do?

It would probably be a good idea to expand the FAQ entry
regarding 'cannot find vga' into one that covers this
particular situation or put said info in a README in the
examples directory.

More information about the fpc-pascal mailing list