[fpc-pascal]fpc and MySQL

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Tue Aug 6 23:00:15 CEST 2002


On Tue, 6 Aug 2002, Fernando Lozano wrote:

> Hi Michael,
>
> > > > > > > `my_compress_alloc':
> > > > > > > my_compress.o(.text+0x13c): undefined reference to `compress'
> > > > > > > testemysql.pas(55) Error: Error while linking
> > > >
> > > > Maybe zlib is missing, some distro's have zlib in libc, some not.
> > >
> > > But adding -lz to the command line don't solve the problem. :-(
> >
> > Adding -lz to the compiler command-line is useless. This will only
> > display the logo of the compiler.
>
> So there's no to add a library to the linking phase on the command line? I must use compiler directives?
>

No, there is:

-k-lz

The -k option can be used to pass any command-line option to the linker.

Michael.






More information about the fpc-pascal mailing list