for Linux in mysql.pp and in mysql_com.pp "stdcall" must by replaced by "cdecl" or "{$ifdef LINUX} cdecl {$else} stdcall {$endif}". Which variable is set by Lazarus when selecting a Linux or a Windows application? Rainer Hamann