[fpc-pascal]fpc and MySQL

Fernando Lozano fernando at lozano.eti.br
Fri Aug 2 18:54:59 CEST 2002


Hi there,

Using fpc 1.0.6 and MySQL 3.23.49a under Red Hat Linux 6.2, everything
installed from rpm packages. When I try to compile a simple program
usign the mysql unit I get the error:

bash$ fpc testemysql.pas -Fl/usr/lib/mysql
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 testemysql.pas
Assembling testemysql
Linking testemysql
/usr/lib/mysql//libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0xaa): undefined reference to `uncompress'
/usr/lib/mysql//libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x13c): undefined reference to `compress'
testemysql.pas(55) Error: Error while linking
Closing script ppas.sh
bash$ 


Sure I missed something basic, but I could not find what. O though it
was zlib, but adding -lz to the command line yelds the same errors.


[]s, Fernando Lozano




More information about the fpc-pascal mailing list