<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1250">
<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 get it working by removing the last lines (complete INPUT) from link.res and running ppas.bat, but can someone explain it?</FONT></P>
<P><FONT SIZE=2>this is what I erased from link.res file:</FONT>
</P>
<P><FONT SIZE=2>INPUT(</FONT>
<BR><FONT SIZE=2>-lmysqlclient</FONT>
<BR><FONT SIZE=2>-lm</FONT>
<BR><FONT SIZE=2>-lc</FONT>
<BR><FONT SIZE=2>-lc</FONT>
<BR><FONT SIZE=2>)</FONT>
</P>
<P><FONT SIZE=2>regards, Pavel Kanzelsberger</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Fernando Lozano [<A HREF="mailto:fsl@centroin.com.br">mailto:fsl@centroin.com.br</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, May 30, 2001 11:02 PM</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>Subject: [fpc-pascal]mysql on windows</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi Michael and list!</FONT>
</P>
<BR>
<P><FONT SIZE=2>I am a teacher in the process of making the computer science department of a brazilian university and a college switch fo free pascal. So far, everybody is liking it!</FONT></P>
<P><FONT SIZE=2>I have the Windows version of MySQL installed but cannot link the testdb.pp example suplied with fpc-1.0.4 for Windows. I tells it cannot find -lmysqlclient...</FONT></P>
<P><FONT SIZE=2>My ppc396.cfg is points to the lib directory of my Mysql installation. Using the debuging options from ppc386 and ldw I could find it is looking for libmysqlclient.a and not mysqlclient.lib as suplied with mysql. I tried creating a copy using the name expected by the linker, and now it complains it cannot find -lm. :-(</FONT></P>
<P><FONT SIZE=2>Should I get a libm.a file somewhere (from a cygwin32 distro)? Or am I going the wrong direction?</FONT>
</P>
<P><FONT SIZE=2>Any help will be apreciated. It will be great to fave a FPC app using mysql and gtk+ running on both Windows and Linux. :-)</FONT></P>
<BR>
<P><FONT SIZE=2>[]s, Fernando Lozano</FONT>
</P>
<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>