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

Mailing lists / lazarus / 2002-12
4 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
stdcall crashed my application when leaving the procedure which connected to mysql,…
Rainer Hamann wrotestdcall crashed my application when leaving the procedure which connected to mysql, because there was a wrong return address on the stack.
On linux it must be cdecl. But it is. All external functions have {$ifdef win32}stdcall{$else}cdecl{$endif};
in their definition.
I don't know where you got your sources from, but the current CVS contains the correct files. I've developed a mysql app on monday, and that worked fine.
Michael.
for Linux in mysql.pp and in mysql_com.pp "stdcall" must by replaced by "cdecl" or…
Actually, I think stdcall works if you are running Delphi compatible mode. However cdecl is the better way to go...
for Linux in mysql.pp and in mysql_com.pp "stdcall" must by replaced by "cdecl" or…
stdcall crashed my application when leaving the procedure which connected to mysql, because there was a wrong return address on the stack.