Sign in Join

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

Mailing lists / lazarus / 2002-12

mysql.pp

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Rainer Hamann

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

Reply by email

Unknown author
to Rainer Hamann: stdcall crashed my application when leaving the procedure which connected to mysql,…
Rainer Hamann wrote
stdcall 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.

Reply by email

Tony Maro
to Rainer Hamann: 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...

Rainer Hamann wrote 12 lines
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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Rainer Hamann
to Rainer Hamann: 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.

Show quoted text 21 lines
Actually, I think stdcall works if you are running Delphi compatible mode. However cdecl is the better way to go... On Wed, 2002-12-18 at 13:28, Rainer Hamann wrote: > 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 > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email