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

A.J. Venter ddt at vukanet.co.za
Thu Jun 27 10:32:56 CEST 2002

When trying to compile any MySQL apps, including the testdb example I 
repeatedly get the following error:

Free Pascal Compiler version 1.0.6 [2002/05/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling insertCodes.pas
insertCodes.pas(11,1) Note: Local variable QBUF not used
insertCodes.pas(16,1) Note: Local variable ROWBUF not used
insertCodes.pas(17,1) Note: Local variable RECBUF not used
Assembling insertcodes
Linking insertcodes
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.

A.J. Venter

More information about the fpc-pascal mailing list