[fpc-pascal] {$warn 5024 off} does not work with FPC 3.2.0
Hi, I have included the following lines in a "fpg_defines.inc" include file in my project, yet when I compile/build my project, it still shows that compiler hint (as can be seen in the attached screenshot). // common compiler options {$mode objfpc}{$H+} {$interfaces corba} {$warn 5024 off} // Hint: Parameter "$1" not used The include file is below the "unit xxx" line, and appears in every unit of my project. Am I doing something wrong in my project settings? I normally have the -viewnh compiler parameters specified so I can see other hints and warnings. The screenshot output used -vwhilq just so I could confirm I am trying to suppress the correct warning number 5024. FPC 3.0.4 gives the same output. So no better. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TThread.OnTerminate never called
El 21/4/19 a les 18:22, Dennis ha escrit: I am using FPC 3.0.4 Lazarus 2.00 on windows 64 I created a subclass of TThread and found out that the TThread.OnTerminate event was never called (I already assigned it). Also, I search the source code of TThread in classeh.inc and found that there was no calling of FOnTerminate nor OnTerminate function ThreadProc in objpas/classes/classes.inc calls Thread.DoTerminate, which in turn checks for FOnTerminate and calls it. Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] TThread.OnTerminate never called
I am using FPC 3.0.4 Lazarus 2.00 on windows 64 I created a subclass of TThread and found out that the TThread.OnTerminate event was never called (I already assigned it). Also, I search the source code of TThread in classeh.inc and found that there was no calling of FOnTerminate nor OnTerminate Is it supposed to be a dummy place holder? I don't use Delphi any more. Is this behaviour the same as Delphi? Thanks in advance. Dennis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows
On Sun, 21 Apr 2019 10:43:35 +0200, "Mgr. Janusz Chmiel" wrote: >Thank you very much for yours help. >Yours advice helped Me. And I have finally downloaded really whole >source code of Free Pascal including compiler and with The >utils/fpcm >folders. >But I Am getting error from make about system unit, so I do not know >where to set The path. To The units from downloaded sources or from >folder, where I have compiler which compiles 3.0.0 version of compiler >for ME? >It will be big adventure for Me to finally get PPCJVM prepared to >compile Android classes. Questions: 1) Which platform are you trying to compile fpc on? Linux, Windows. MacOs etc and which CPU (i386, armx64, 2) Did you download the seed compiler 2.6.4 from somewhere? The binary is needed as a bootstrap to build fpc 3.0.0 There is a readme here for how to build fpc: https://svn.freepascal.org/svn/fpc/tags/release_3_0_0/compiler/README.txt I am using these commands whenever I need to build fpc (all in Linux) (the fpc version number changes of course): mkdir /home//bin cd /home//dev/fpc/3.0.0/ make clean make all FPC= make install PREFIX=/home/ make sourceinstall PREFIX=/home/ /home//lib/fpc/3.0.0/samplecfg /home//lib/3.0.0 /home/ mv /home//fpc.cfg /home//.fpc.cfg The seed compiler for building 3.0.0 is the previous release 2.6.4 compiler. You only need the binary for that compiler during build of fpc 3.0.0. Maybe you can find the seed compiler here: https://sourceforge.net/projects/freepascal/files/Bootstrap/2.6.4/ -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows
Thank you very much for yours help. Yours advice helped Me. And I have finally downloaded really whole source code of Free Pascal including compiler and with The utils/fpcm folders. But I Am getting error from make about system unit, so I do not know where to set The path. To The units from downloaded sources or from folder, where I have compiler which compiles 3.0.0 version of compiler for ME? It will be big adventure for Me to finally get PPCJVM prepared to compile Android classes. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal