Sign in Join

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

Mailing lists / lazarus / 2013-01

trunk compile error Win XP : Error: identifier idents no member "StrikeThrough"

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

John Landmesser

Hi,

i cannot compile actual lazarus trunk version:

Stops here:

procedure TLazCanvas.AssignFontData(AFont: TFPCustomFont);
begin
   if AFont = nil then Exit;
   Font.FPColor := AFont.FPColor;
   Font.Name := AFont.Name;
   Font.Size := AFont.Size;
   Font.Bold := AFont.Bold;
   Font.Italic := AFont.Italic;
   Font.Underline := AFont.Underline;
   {$IF (FPC_FULLVERSION=20601) or (FPC_FULLVERSION>=20701)} //changed
in 2.6.1 and 2.7; remove when FPC 2.6.2+ only is supported
   Font.StrikeThrough := AFont.StrikeThrough;
   {$ELSE}
   Font.StrikeTrough := AFont.StrikeTrough; //old version with typo
   {$ENDIF}
end;

error message is:

C:\lazarus\lcl\lazcanvas.pas(765,8) Error: identifier idents no member
"StrikeThrough"

Lazarus:

Lazarus 1.1 r39792 FPC 2.6.1 i386-win32-win32/win64

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130123/c732fae2/attachment-0001.html>

Reply by email

John Landmesser
to Vincent Snijders
Vincent Snijders wrote
Is your fpc 2.6.1 version up to date? Vincent

Thanks for this tipp, now it compiles ok!

But:
I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot.

There are differences between 2.6.1 and 2.6.1 ???

I have to keep that in mind!

Reply by email

Reinier Olislagers
to John Landmesser
John Landmesser wrote
Am 23.01.2013 15:56, schrieb Vincent Snijders: I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot. There are differences between 2.6.1 and 2.6.1 ???

Yes.
And there are differences between 2.7.1 and 2.7.1

Reply by email

Sven Barth
to John Landmesser: Thanks for this tipp, now it compiles ok! But: I had fpc 2.6.1 from 2012 and now i…
John Landmesser wrote 14 lines
Am 23.01.2013 15:56, schrieb Vincent Snijders: > Is your fpc 2.6.1 version up to date? > > Vincent > Thanks for this tipp, now it compiles ok! But: I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot. There are differences between 2.6.1 and 2.6.1 ??? I have to keep that in mind!

2.6.1 as well as 2.7.1 are no constant releases. 2.7.1 is the development version where the main development takes place and 2.6.1 is the fixes branch (not a fixes release!) to which selected revisions from 2.7.1 are merged to form 2.6.2 somewhen in the (hopefully not too far) future. 2.6.2 will be a stable release again.

Regards,
Sven

Reply by email