[fpc-pascal]fpc and MySQL

Fernando Lozano fsl at centroin.com.br
Mon Aug 5 13:42:17 CEST 2002


Hi Michael,

> > 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$
> 
> Can you send the contents of link.res ?

Here it is.


[]s, Fernando Lozano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link.res
Type: application/octet-stream
Size: 2081 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20020805/e8b18164/attachment.obj>


More information about the fpc-pascal mailing list