[fpc-pascal]mysql on windows

Kanzelsberger Pavel kanzelsberger at rekt.umb.sk
Thu May 31 11:37:04 CEST 2001


I get it working by removing the last lines (complete INPUT) from link.res
and running ppas.bat, but can someone explain it?

this is what I erased from link.res file:

INPUT(
-lmysqlclient
-lm
-lc
-lc
)

regards, Pavel Kanzelsberger

-----Original Message-----
From: Fernando Lozano [mailto:fsl at centroin.com.br]
Sent: Wednesday, May 30, 2001 11:02 PM
To: michael.vancanneyt at freepascal.org
Cc: fpc-pascal at lists.freepascal.org
Subject: [fpc-pascal]mysql on windows


Hi Michael and list!


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!

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...

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. :-(

Should I get a libm.a file somewhere (from a cygwin32 distro)? Or am I going
the wrong direction?

Any help will be apreciated. It will be great to fave a FPC app using mysql
and gtk+ running on both Windows and Linux. :-)


[]s, Fernando Lozano

_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20010531/4f033695/attachment.html>


More information about the fpc-pascal mailing list