Path to 6.6.6-stable - "constref" FPC 2.5.1
Moderators: gto, cipto_kh, EgonHugeist, mdaems
Path to 6.6.6-stable - "constref" FPC 2.5.1
Hi,
Because this http://wiki.freepascal.org/User_Changes ... en_changed
...I could not compile my Lazarus. So, in attachment is a path to ZClasses.pas
This path is to 6.6.6-stable version.
Marcos Douglas
Because this http://wiki.freepascal.org/User_Changes ... en_changed
...I could not compile my Lazarus. So, in attachment is a path to ZClasses.pas
This path is to 6.6.6-stable version.
Marcos Douglas
You do not have the required permissions to view the files attached to this post.
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
-
- Expert Boarder
- Posts: 164
- Joined: 18.03.2008, 13:03
- Contact:
zeos does not compile on FPC 2.4 anymore
Hello,
the change applied may be ok for FPC 2.5, but for FPC 2.4 it raises exception when compiling. Attaching patch that should fix the problem.
the change applied may be ok for FPC 2.5, but for FPC 2.4 it raises exception when compiling. Attaching patch that should fix the problem.
You do not have the required permissions to view the files attached to this post.
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Wild_Pointer,
What about the patches by papelhienico posted in the bug tracker, are they allright?
I did commit his patches earlier today (to testing branch). Is your patch above still needed?
What worries me about your post is this part:
Does that mean fpc <2.5 on linux doesn't use 'cdecl'?
Mark
What about the patches by papelhienico posted in the bug tracker, are they allright?
I did commit his patches earlier today (to testing branch). Is your patch above still needed?
What worries me about your post is this part:
Code: Select all
{$IFDEF FPC2_5UP}{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}{$ELSE}stdcall{$ENDIF}
Mark
-
- Expert Boarder
- Posts: 164
- Joined: 18.03.2008, 13:03
- Contact:
Hello, mdaems,
I'm using Lazarus 0.9.28.2-10Ubuntu1, FPC v2.4.0
objpash.inc contains declaration:
UODATE:
I have updated to initial (1) objpash.inc revision from fpc repository - seems that interface definition has not been changed till version 2.4.0
END OF UPDATE.
I have tried compiling zeos trunk version, but I failed, so I had to change the code. Maybe fpc <2.5 on linux does use 'cdecl', but not with IInterface ... I didn't come with anything more elegant than this {$IFDEF FPC2_5UP}.
I'm using Lazarus 0.9.28.2-10Ubuntu1, FPC v2.4.0
objpash.inc contains declaration:
Code: Select all
IUnknown = interface
['{00000000-0000-0000-C000-000000000046}']
function QueryInterface(const iid : tguid;out obj) : longint;stdcall;
function _AddRef : longint;stdcall;
function _Release : longint;stdcall;
end;
IInterface = IUnknown;
I have updated to initial (1) objpash.inc revision from fpc repository - seems that interface definition has not been changed till version 2.4.0
END OF UPDATE.
I have tried compiling zeos trunk version, but I failed, so I had to change the code. Maybe fpc <2.5 on linux does use 'cdecl', but not with IInterface ... I didn't come with anything more elegant than this {$IFDEF FPC2_5UP}.
I think the change made by papelhienico is valid only to FPC >= 2.5What about the patches by papelhienico posted in the bug tracker, are they allright?
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
Is there a plan to release a 6.6.7 with these fixes? On Linux I managed to get it working on FPC 2.6.0 with changes to ZClasses.pas (extra IFDEFs) and Zeos.inc (extra DEFINEs). Marcos tested it on Windows.
Alexsander
http://rednaxel.com
http://rednaxel.com