fermigas / ltvt

9 stars 1 forks source link

Converting to lazarus? #1

Open Plutonium5793 opened 3 years ago

Plutonium5793 commented 3 years ago

Hi, Unfortunately I am not a pascal user as of this date. There is a delphi converter in lazarus (https://wiki.freepascal.org/Delphi_Converter_in_Lazarus), and I ran it. As one would expect, it comes up with some errors, and I was hoping to learn how to fix them. One of its favorites is: on this statement uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DateUtils, MMSystem;

one sees this error: CRT_Ops.pas (130,3) Fatal: Cannot find Windows used by CRT_Ops. I get the idea of the error, but have no idea why "Windows" is missing. Many units seem to want to use it.

Plutonium5793 commented 3 years ago

I realized that I was using lazarus under linux fedora so I tried the conversion in windows7. I am attaching a list of the conversion errors. There is one error, some warnings and hints. I have attached a screenshot. Curiously one of the hints is that unit windows is not used. (see message 1).
pascal_conversion_errors It looks quite possible to get this running in lazarus (a current pascal/IDE in active development). I guess I need to go back and start learning some pascal to try to do this.