Problems with TRect/TPoint lazarus / 32-Linux ---------------------------------------------------------------------- simone · 2017-11-11 16:09 Hello everyone. I'm trying to compile under Linux a project developed in Windows environment, but I get some compiler errors with TRect and TPoint. In particular with: - TRect.CenterPoint function - TRect.Width / Height properties - TPoint <> operator I read the warnings in typshrdh.inc and also some posts in the forum, but I did not understand how to solve the problem with Linux. Thanks in advance for the support. ---------------------------------------------------------------------- marcov · 2017-11-11 16:36 What is your compiler version? (on windows and linux?) ---------------------------------------------------------------------- Handoko · 2017-11-11 16:45 @simone As far as I know TRect.Width and TRect.Height are not available on Lazarus 1.6.0 FPC 3.0.0. But I'm sure it is available on Lazarus 1.6.4. It is time to update your Lazarus/FPC. Read more (J-G's issue): http://forum.lazarus.freepascal.org/index.php/topic,35313.msg257169.ht ml#msg257169 ---------------------------------------------------------------------- simone · 2017-11-11 17:00 I'm using latest stable versions available on both platforms. In my tests with Linux Ubuntu I used Lazarus 1.6+dfsg-1. I'm developing my project under Windows with Lazarus 1.6.4. ---------------------------------------------------------------------- marcov · 2017-11-11 17:06 Quote from: simone on November 11, 2017, 06:00:46 pmI'm using latest stable versions available on both platforms. In my tests with Linux Ubuntu I used Lazarus 1.6+dfsg-1. I'm developing my project under Windows with Lazarus 1.6.4. Well, then that is the problem, like both Handoko and I suspected. 1.6.4 packs FPC 3.0.2 which contains a cleanup of TRect.  1.6 packs 3.0.0 which doesn't. The easiest solution is to migrate Linux to a newer, FPC 3.0.2 using version. ---------------------------------------------------------------------- simone · 2017-11-11 18:29 Thanks for the help. For laziness, on Linux I haved installed Lazarus with apt-get. I wrongly thought to get the latest version in this way...