Recent

Author Topic: Missing funcitons on very close version on Linux  (Read 1778 times)

FRex

  • New Member
  • *
  • Posts: 20
Missing funcitons on very close version on Linux
« on: June 27, 2017, 09:18:45 pm »
On Windows 10 I downloaded Lazarus myself, as is usual on Windowses.
On Fedora 25 I installed fpc and Lazarus via dnf, as is usual on Linuxes.

The project works fine on Windows but on Linux I get two kinds of errors:
'illegal qualifier' on lines where I call methods on string instances (like https://github.com/FRex/botes/blob/master/mainunit.pas#L87 ) and one that the method is missing for SetLocation ( https://github.com/FRex/botes/blob/master/mainunit.pas#L472 )

On Windows I have fpc 3.0.2 and Lazarus 1.6.4. On Linux it's 3.0.0 and 1.6.2.
The project settings are same I believe.
It's just 1 version behind (if odd ones are unstable).
Were these helpers added that recently or why does this not work?
App to keep track of notes in a single plain text file tagged by hashtags: https://github.com/FRex/botes

Thaddy

  • Hero Member
  • *****
  • Posts: 14203
  • Probably until I exterminate Putin.
Re: Missing funcitons on very close version on Linux
« Reply #1 on: June 27, 2017, 09:46:47 pm »
These helper function implementations were introduced in 3.0.2 in the sysutils unit, so they don't work in 3.0.0. Easy. Upgrade your Linux version to 3.0.2.
Actually, I already complained that such a major feature should be in the release documentation, but it isn't.

Technically you can also copy out the helpers from 3.0.2 and compile them with 3.0.0 since the 3.0.0 compiler itself already handled it, but that is more cumbersome than simply upgrading to 3.0.2.
« Last Edit: June 27, 2017, 10:00:45 pm by Thaddy »
Specialize a type, not a var.

FRex

  • New Member
  • *
  • Posts: 20
Re: Missing funcitons on very close version on Linux
« Reply #2 on: June 27, 2017, 10:54:14 pm »
My Fedora is up to date. They don't ship these versions, they'll probably come with 26. The Fedora and fpc release cycles had really unlucky release dates and that's the 'latest' that was available when F25 was shipped. :'(
I've used the rpms from Lazarus' website and it now compiles and works.
App to keep track of notes in a single plain text file tagged by hashtags: https://github.com/FRex/botes

 

TinyPortal © 2005-2018