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

Georgi Georgiev skelet_bg at yahoo.com
Wed Oct 1 11:08:19 CEST 2003

 --- Andy Sy <andy at netfxph.com> wrote: > 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
> /usr/local/lib/fpc/1.0.10/units/linux/libxxx
>  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?

May be the problem is that the linker can't find the
corresponding header files of the actual library.

I'm using Debian and the followng sequence of 
actions solves such problems:

1. Installing standart FreePascal system:

apt-get install fp-compiler ....    # install
apt-get install binutils                 # install

2. Installing some actual library (postgresql as an

apt-get install postgresql            # PostgreSQL
apt-get install postgresql-dev    # header files for

The last step (installing the *-dev package) is the 
solution (in my opinion) !

====== http://skelet.hit.bg

Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

More information about the fpc-pascal mailing list