Sign in Join

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

Mailing lists / lazarus / 2010-12

Compile error on Win7 x64

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Erwin van den Bosch

Hello,

I'm getting compile errors on the current SVN on Windows 7 x64 / fpc 2.4.3.

Error: Can't overide method Realloc. No Int64 ...etc....

unit LCLMemManager;
...
...
{$IF FPC_FULLVERSION>20402}
   TStreamSizeType = PtrInt;
{$ELSE}
   TStreamSizeType = Longint;
{$IFEND}
   { TExtMemoryStream }
   TExtMemoryStream = class(TMemoryStream)
   protected
     function Realloc(var NewCapacity: TStreamSizeType): Pointer; override;
   public
     property Capacity;
   end;

In systemh.inc :

{$ifdef CPU64}
   SizeInt = Int64;
   SizeUInt = QWord;
   PtrInt = Int64;
   PtrUInt = QWord;
   ValSInt = int64;
   ValUInt = qword;
{$endif CPU64}

So PtrInt = Int64 but there is no method with an Int64 that can be overriden.

In classesh.inc :

TMemoryStream = class(TCustomMemoryStream)
protected
     function Realloc(var NewCapacity: Longint): Pointer; virtual;

Type is Longint. Not PtrInt or Int64.

Good luck fixing and happy xmas all!
Greetings Erwin

Reply by email

Vincent Snijders
to Erwin van den Bosch

2010/12/15 Erwin van den Bosch :

Show quoted text 5 lines
Hello, I'm getting compile errors on the current SVN on Windows 7 x64 / fpc 2.4.3. Error: Can't overide method Realloc. No Int64 ...etc....

I think your fpc 2.4.3 is not up to date.

Vincent

Reply by email

Erwin van den Bosch
to Vincent Snijders

Vincent, I will check that. Thanks for quick answer!

Erwin

Vincent Snijders wrote 15 lines
2010/12/15 Erwin van den Bosch: > Hello, > > I'm getting compile errors on the current SVN on Windows 7 x64 / fpc 2.4.3. > > Error: Can't overide method Realloc. No Int64 ...etc.... I think your fpc 2.4.3 is not up to date. Vincent -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email