[fpc-pascal]/usr/bin/ld: cannot find -lgd errorr
Marco van de Voort
marcov at stack.nl
Wed Oct 1 11:30:41 CEST 2003
> > 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
> FreePascal
> apt-get install binutils # install
> assembler
>
> 2. Installing some actual library (postgresql as an
> example):
>
> apt-get install postgresql # PostgreSQL
> itself
> apt-get install postgresql-dev # header files for
> libpq
>
> The last step (installing the *-dev package) is the
> solution (in my opinion) !
While this is correct (installing the dev package can fix these kind of
problems), what actually is needed from the dev packages are not the headers
but the static library (the .a file). The "normal" package (without -deve)
is the dynamic library (.so file)
More information about the fpc-pascal
mailing list