--- Andy Sy <[EMAIL PROTECTED]> 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 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) ! ===== Skelet ====== http://skelet.hit.bg ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal