[fpc-pascal]Linking error with MySQL on Linux.

Peter Vreman peter at freepascal.org
Thu Jun 27 11:19:11 CEST 2002


> insertCodes.pas(43) Error: Error while linking
> Closing script ppas.sh
> /usr/bin/ld: cannot find -lmysqlclient
> I have tried symlinking libraries, have checked /etc/ld.so.conf to ensure that 
> the mysql libraries were there etc. etc. etc.
> 
> Any idea how to tell ld where to find it ?
> 
> I am running FPC 1.0.6 on RedHat 7.3 full install.

You need to have the mysql-devel package installed. You can check if it is installed with
the following command:

rpm -qq mysql-devel


Peter






More information about the fpc-pascal mailing list