Recent

Author Topic: Cannot find System.Types  (Read 1340 times)

IQuitDelphiToo

  • New member
  • *
  • Posts: 8
Cannot find System.Types
« on: July 22, 2019, 02:18:51 pm »
Hi

This is my first Delphi unit converted to Lazarus.
However, the conversion did not work. I get "Fatal: Cannot find System.Types used by cMath of the Project Inspector.".

My Delphi unit is like this:
----------------------------------------
...
INTERFACE
USES System.Types;
...
----------------------------------------

                                               

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11444
  • FPC developer.
Re: Cannot find System.Types
« Reply #1 on: July 22, 2019, 02:21:42 pm »
Remove System.  FPC is like Delphi XE and less, no dotted names.

In my Delphi code I reduced all these dotted names, and set the prefix in the project option.

That is mostly fine, but unfortunately the designer standardly adds them in dotted form.

IQuitDelphiToo

  • New member
  • *
  • Posts: 8
Re: Cannot find System.Types
« Reply #2 on: July 22, 2019, 02:27:30 pm »
Many thanks. That worked!
Now I am fighting "System.Generics.Collections".
I hope this will fix it: https://github.com/maciej-izak/generics.collections

---------------------------

There is a list of list of units that are/are not available in Lazarus?


« Last Edit: July 22, 2019, 02:38:21 pm by IQuitDelphiToo »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11444
  • FPC developer.
Re: Cannot find System.Types
« Reply #3 on: July 22, 2019, 02:48:41 pm »
There is no list. Delphi mutates constantly, and it is not just units, but also what is in them.

In general, avoid new Delphi features and units.

The library from your link has been added to development FPC versions (FPC 3.2 and trunk).

 

TinyPortal © 2005-2018