Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-04

MySQL demo problem

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Chris Moody

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?

Chris

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

Chris Moody
to Unknown author: You should have a file libmysqlclient.dll somewhere in your system. (normally the…

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

Earlier message 58 lines
----- Original Message ----- From: To: 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 - > 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
Unknown author
to Chris Moody: I've been trying to test the testdb program that comes with FPC, and it's kind of wierd,…
Chris Moody wrote 16 lines
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.

Fernando Lozano
to Chris Moody: I've been trying to test the testdb program that comes with FPC, and it's kind of wierd,…

Hi Chris,

Show quoted text 8 lines
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 Any suggestions?

Download a snapshot for 1.0.5 or wait for 1.0.6 which is about to be released. The mysql unit on 1.0.4 Win32 has a litthe bug regarding linking.

[]s, Fernando Lozano