[fpc-pascal]/usr/bin/ld: cannot find -lgd errorr
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
> come with FreePascal, trying to compile them results
> an link error where ld claims it cannot find a
> 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
> libraries like mysql and postgres). What then are
> file like gd.o, libgd.a, libpgd.ppu for? Are they
> 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) !
Want to chat instantly with your online friends? Get the FREE Yahoo!
More information about the fpc-pascal