[fpc-pascal]FPC and MySQL under Linux

Fernando Lozano fsl at centroin.com.br
Wed Jul 24 17:57:42 CEST 2002


Hi there,

Using the same test program I already sent, but this time under Linux nad not Windows 98. Red Hat 6.2, fpc 1.0.6 (the real one, not the beta that was released by mistake) and MySQL 3.23.49a, everything installed from the respective RPM Packages. I tried to compile using

$ fpc -Fl/usr/lib/mysql testemysql.pas

And got the error:

Linking testedbmysql
/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'
testedbmysql.pas(47) Error: Error while linking
Closing script ppas.sh

Please don't tell me I'll have to recompikle everything from sources. ;-)


[]s, Fernando Lozano




More information about the fpc-pascal mailing list