[fpc-pascal]MySQL demo problem

Chris Moody moodsoft at sbcglobal.net
Tue Apr 2 15:30:33 CEST 2002


Hi Michael,

I've tried this and have had no luck. One thing I was wondering, though why
would you need a dll file to compile a program? It was always my
understanding, that dlls were only used while the program was running.

Chris
----- Original Message -----
From: <Michael.VanCanneyt at Wisa.be>
To: <fpc-pascal at deadlock.et.tudelft.nl>
Sent: Tuesday, April 02, 2002 6:50 PM
Subject: Re: [fpc-pascal]MySQL demo problem


>
>
> 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.
>
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 3/22/02





More information about the fpc-pascal mailing list