[fpc-pascal]MySQL demo problem

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Tue Apr 2 20:50:13 CEST 2002


On Tue, 2 Apr 2002, Chris Moody wrote:

> Hi all,
>
> I've been trying to test the testdb program that comes with FPC, and it's
> kind of wierd, if I compile it from a dos box (running on Windows 98) I get
> the error message:
>
>  -: cannot find -lmysqlclient
> testdb.pp(83,1) Warning: Error while linking
>
> This is using: ppc386 testdb -Fu\pp\units\win32 at the command prompt.
>
> However if I run fp, it claims the file compiles correctly, but when I tell
> it to run the file, it says it can't find the exe file. Which makes since
> because it doesn't exist.
>
> Any suggestions?

You should have a file libmysqlclient.dll somewhere in your system.
(normally the directory where mysql is installed)

either:
1. Copy it to the directory where the sources are.
2. Add the path to the directory where it is to the compiler command-line
   options with -Fl:
   ppc386 testdb -Fu\pp\units\win32 -Flc:\mysql\lib
  (assuming it is in c:\mysql\lib

It may be that on your system the dll is called libmysql.dll, in that case
you should make a copy called libmysqlclient.dll

Michael.






More information about the fpc-pascal mailing list