Joost van der Sluis ha scritto:
You forgot the transaction. (What is the error you got?)
On Mon, 2007-05-14 at 15:14 +0200, Alvise Nicoletti wrote:
Henry Vermaak ha scritto:
On 14/05/07, Alvise Nicoletti <[EMAIL PROTECTED]> wrote:
However: how difficult can it be to install zeos on lazarus for linux?
I prefer to use "light" libraries like I did in the past and I like
SQLdb... however i need to be sure that all works and it's stable...
if you want something really light, just look at the example code
under fpc/packages/base/mysql. it calls the mysql libs directly.
otherwise look at the examples under
fpc.packages/fcl-db/src/sqldb/examples for the oo approach.
remember to install the mysql*-dev packages (in ubuntu) to make sure
they'll link. also look at the database faq in the wiki.
henry
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
Thank you.
You're talking about the cvs i suppose, I'll try to give a look at them.
In the meantime I show you the code I'm using, just to ensure i'm doing
right:
program alvise_servizio;
uses baseunix, cthreads, SysUtils, mysql4conn, sqldb, db, mysql4, MySQLDB4;
procedure daemon;
var
Connessione: TMySQL40Connection;
Query: TSQLQuery;
begin
Connessione:= TMySQL40Connection.Create(nil);
Query:= TSQLQuery.Create(nil);
Connessione.HostName:='localhost';
Connessione.UserName:='un';
Connessione.Password:='up';
Connessione.Connected:=true;
while (true) do begin
sleep(10000);
WriteLn('bla bla');
end;
end;
var
pid: Tpid;
begin
WriteLn('hi! im a bad daemon!');
pid:=fpfork;
if (pid=0) then
daemon;
end.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
The error I'm having it's surely a library name problem:
Identifier not found "TMySQL40Connection" (I'm using 40 not 50).
I tryed with the code that Bram sent me on the mail next to this one...
and I got the same error.
Under windows the same code compile, with lazarus 0.9.22, under linux
I'm not finding the right function using the control+space function. How
can I debug this?
However I'm thinking about working on windows and porting the code in a
second moment... it would be faster for me, and it should work...
I searched for the daemon.pp example but I did not found it into the
fpc/packages/fcl-base/tests/ directory.
I'm still trying to understand (and I would really appreciate some tip
from you about that) if the thing I have to do is possible, before
getting involved into it... I explained in another mail that I have to
create:
1) a linux service
2) that opens a socket and takes some telnet commands
3) that reads some data from a local mysql database
I already did to small project with Lazarus (one in windows and one in
pocket pc wince) and I see it's really powerful but I have no experience
with linux "softwaring".
Thanks to all
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives