[fpc-pascal]mySQL

Marco van de Voort marcov at stack.nl
Sun Sep 22 08:13:36 CEST 2002


> I'm trying to use mySQL as the database system for my program,
> however...
> 
> Linking testdb
> /usr/bin/ld: cannot find -lmysqlclient
> testdb.pp(84) Warning: Error while linking
> 
> I have installed fpc using the .deb packages of Debian, but I've
> installed mysql from the sources...
> 
> Could someone help here please? thanks. I'd like to know how exactly to
> fix this problem, without trying to muck up my system.

Check if a libmysqlclient .so or .a exists somewhere on the system.

Then recompile, and pas  -Fl<thatdir> to the compiler.

(better to add that -Fl<thatdir> to your fpc.cfg or ppc386.cfg file for the
future)




More information about the fpc-pascal mailing list