<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [fpc-pascal]mysql on windows</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I have the same problem, anyway DLL is not needed in compilation time... compiler is looking for mysqlclient.lib or .aw? file...</FONT></P>
<P><FONT SIZE=2>regards, Pavel Kanzelsberger</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Jeff Patterson [<A HREF="mailto:pars@nbnet.nb.ca">mailto:pars@nbnet.nb.ca</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, May 31, 2001 12:01 AM</FONT>
<BR><FONT SIZE=2>To: fpc-pascal@deadlock.et.tudelft.nl</FONT>
<BR><FONT SIZE=2>Subject: Re: [fpc-pascal]mysql on windows</FONT>
</P>
<BR>
<P><FONT SIZE=2>----- Original Message -----</FONT>
<BR><FONT SIZE=2>From: "Fernando Lozano" <fsl@centroin.com.br></FONT>
<BR><FONT SIZE=2>To: <michael.vancanneyt@freepascal.org></FONT>
<BR><FONT SIZE=2>Cc: <fpc-pascal@lists.freepascal.org></FONT>
<BR><FONT SIZE=2>Sent: Wednesday, May 30, 2001 6:02 PM</FONT>
<BR><FONT SIZE=2>Subject: [fpc-pascal]mysql on windows</FONT>
</P>
<BR>
<P><FONT SIZE=2>> I have the Windows version of MySQL installed but cannot link the</FONT>
<BR><FONT SIZE=2>testdb.pp example suplied with fpc-1.0.4 for</FONT>
<BR><FONT SIZE=2>> Windows. I tells it cannot find -lmysqlclient...</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> My ppc396.cfg is points to the lib directory of my Mysql installation.</FONT>
<BR><FONT SIZE=2>Using the debuging options from ppc386 and</FONT>
<BR><FONT SIZE=2>> ldw I could find it is looking for libmysqlclient.a and not</FONT>
<BR><FONT SIZE=2>mysqlclient.lib as suplied with mysql. I tried creating a copy</FONT>
<BR><FONT SIZE=2>> using the name expected by the linker, and now it complains it cannot</FONT>
<BR><FONT SIZE=2>find -lm. :-(</FONT>
</P>
<P><FONT SIZE=2>There is supposed to be a DLL called libmysql.dll that should probably be</FONT>
<BR><FONT SIZE=2>copied from the MySQL installation to the Windows System directory. Oddly</FONT>
<BR><FONT SIZE=2>though, not all distribution packages of MySQL for Windows has this DLL</FONT>
<BR><FONT SIZE=2>included. I managed to get the DLL from an older distribution of MySQL and</FONT>
<BR><FONT SIZE=2>it seems to work fine with the current version.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>fpc-pascal maillist - fpc-pascal@lists.freepascal.org</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" TARGET="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</A></FONT>
</P>
</BODY>
</HTML>