Re: [fpc-pascal] Abstract classes ignored

2021-04-18 Thread C Western via fpc-pascal
On 18/04/2021 03:34, Ryan Joseph via fpc-pascal wrote: On Apr 17, 2021, at 3:09 PM, Sven Barth wrote: The compiler will generate a warning in case you instantiate a class that is abstract or has abstract methods. You can escalate these warnings to errors if you need: It's probably not

Re: [fpc-pascal] Access Violation on second compile with FPC Text IDE

2020-11-12 Thread C Western via fpc-pascal
On 11/11/2020 22:26, James Richters via fpc-pascal wrote: I'm suddenly getting an access violation when compiling after a file changed with the FPC text IDE: Recompiling because of I:\Programming\Gcode\Mill\pastep.pas sysinit.pp(0) Error: Compilation raised exception internally Error: Compiler

Re: [fpc-pascal] New package to evaluate Pascal-expressions

2020-10-24 Thread C Western via fpc-pascal
On 21/10/2020 16:57, Joost van der Sluis via fpc-pascal wrote: Hi all, Working on fpDebug, I've got onto a side-track and created an expression-evaluator based on fcl-passrc . So that you can evaluate Pascal-expressions at runtime.

Re: [fpc-pascal] Catalina upgrade changes

2019-10-10 Thread C Western
Actually, thanks for posting this here - it did contain generally useful information. Colin On 08/10/2019 22:04, Ryan Joseph wrote: My apologies, I sent this to the wrong list (it’s macOS related). Please disregard. Regards, Ryan Joseph

Re: [fpc-pascal] Building trunk

2018-12-01 Thread C Western
On 30/11/2018 10:26, Cyrax wrote: On 30/11/2018 12:23, Cyrax wrote: On 30/11/2018 11:12, C Western wrote: On 30/11/2018 04:23, Cyrax wrote: On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version

Re: [fpc-pascal] Building trunk

2018-11-30 Thread C Western
On 30/11/2018 04:23, Cyrax wrote: On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have held off upgrading to Fedora 29

Re: [fpc-pascal] Building trunk

2018-11-29 Thread C Western
On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have held off upgrading to Fedora 29...) Colin ___ fpc-pascal maillist

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 25/11/2018 14:18, Florian Klämpfl wrote: Am 25.11.2018 um 14:30 schrieb Colin Western: What generates the header? Is it fpc, an external linker or the loader? Can you please run the following C program: #include #include int main() { printf("AT_PHDR: %lx\n",getauxval(AT_PHDR));

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 25/11/2018 12:01, Florian Klämpfl wrote: Am 25.11.2018 um 12:20 schrieb C Western: On 24/11/2018 22:21, Florian Klämpfl wrote: Am 24.11.2018 um 10:08 schrieb C Western: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 24/11/2018 22:21, Florian Klämpfl wrote: Am 24.11.2018 um 10:08 schrieb C Western: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk>> geschrieben:     I haven't been able to build trunk i386 fpc for a couple of

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 24/11/2018 15:19, C Western wrote: On 24/11/2018 12:30, Sven Barth via fpc-pascal wrote: Am Sa., 24. Nov. 2018, 10:09 hat C Western <mailto:l...@c-m-w.me.uk>> geschrieben:     On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote:     > Am Fr., 23. Nov. 2018, 10:26 hat C West

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 24/11/2018 12:30, Sven Barth via fpc-pascal wrote: Am Sa., 24. Nov. 2018, 10:09 hat C Western <mailto:l...@c-m-w.me.uk>> geschrieben: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: > Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk> >

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 23/11/2018 13:58, Joost van der Sluis wrote: On 11/23/18 2:48 PM, C Western wrote: make distclean cycle OPT="-n" OS_TARGET=linux CPU_TARGET=i386 FPC=~/fpc/bootstrap/ppcx64 /home/ctcmw/fpc/trunk/fpcsrc/compiler/ppcross386 -Pi386 -XPi386-linux- -Xr -Fui386 -Fusystems -Fu../rtl/

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western <mailto:l...@c-m-w.me.uk>> geschrieben: I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I

Re: [fpc-pascal] Building trunk

2018-11-23 Thread C Western
cx64 Please test this out and report if it solves your problem or not. Pierre Muller Le 23/11/2018 à 10:21, C Western a écrit : I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I don't think I have changed

[fpc-pascal] Building trunk

2018-11-23 Thread C Western
I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I don't think I have changed anything.) The output is below. I don't think it is significant, but I am building on a 64 bit system, but with a 32 bit starting

Re: [fpc-pascal] MacOSX Mojave

2018-10-08 Thread C Western
+    $(COMPILER) pp.pas -Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib $(EXECPPAS) $(MOVE) $(COMPILER_TARGETDIR)/$(PPEXENAME) $(EXENAME) Michael Am 07.10.18 um 19:38 schrieb Jonas Maebe: On 06/10/18 16:01, C Western wrote: Possibly unwisely, I updated

Re: [fpc-pascal] MacOSX Mojave

2018-10-06 Thread C Western
ndLineTools/SDKs/MacOSX.sdk/usr/lib/'+startupfile) then + result:='/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/'+startupfile end    else result:=''; Am 06.10.18 um 16:01 schrieb C Western: Possibly unwisely, I updated by Mac to Mojave. I found that things (including 32

[fpc-pascal] MacOSX Mojave

2018-10-06 Thread C Western
Possibly unwisely, I updated by Mac to Mojave. I found that things (including 32 bit apps) worked, but: I had to add -Fl/Applications/Xcode.app/Con tents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib to my fpc.cfg to avoid "/usr/lib/crt1.o not found" errors. It seems

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread C Western
On 02/07/18 23:13, Wolf wrote: Not so long ago, Florian was proudly bragging about "Pascal does not allow you to shoot yourself in the foot " What about this little program: program Project1; var a,b: byte; begin   a:=1;  

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-02 Thread C Western
On 01/07/18 09:27, C Western wrote: On 29/06/18 21:55, Sven Barth via fpc-pascal wrote: Am 29.06.2018 um 18:45 schrieb Alan Krause: I stumbled upon something the other day that was causing numerical differences between compiled Delphi and FPC code. Executing the following sample console

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-01 Thread C Western
On 29/06/18 21:55, Sven Barth via fpc-pascal wrote: Am 29.06.2018 um 18:45 schrieb Alan Krause: I stumbled upon something the other day that was causing numerical differences between compiled Delphi and FPC code. Executing the following sample console application illustrates the issue clearly:

Re: [fpc-pascal] macos make 3.1.1 fails

2018-06-26 Thread C Western
On 26/06/18 03:35, Anthony Walter wrote: I don't believe i386 is supported by the newer OSX dev tools. Use x86_64 instead. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread C Western
On 20/06/18 22:16, C Western wrote: On 20/06/18 21:58, Florian Klämpfl wrote: Am 19.06.2018 um 23:50 schrieb James Richters: I’ve been updating my old programs to use the MATH unit in freepascal and while testing things I came across a runtime error 217  Invalid floating point operation

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread C Western
On 20/06/18 21:58, Florian Klämpfl wrote: Am 19.06.2018 um 23:50 schrieb James Richters: I’ve been updating my old programs to use the MATH unit in freepascal and while testing things I came across a runtime error 217  Invalid floating point operation.  Here is my test program Uses math;

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread C Western
On 19/06/18 22:50, James Richters wrote: I’ve been updating my old programs to use the MATH unit in freepascal and while testing things I came across a runtime error 217  Invalid floating point operation.  Here is my test program Uses math; var    variable1:double;    variable2:double;

Re: [fpc-pascal] Range checks

2018-01-27 Thread C Western
On 27/01/18 16:28, Jonas Maebe wrote: Jonas Maebe wrote: C Western wrote: The following innocuous looking code generates a range check error: {$R+} function Count: qword; begin Result := 0; end; var i: Integer; begin for i := 0 to Count-1 do WriteLn(i); end. I can (more

Re: [fpc-pascal] Range checks

2018-01-27 Thread C Western
On 27/01/18 15:06, Adriaan van Os wrote: C Western wrote: The following innocuous looking code generates a range check error: The code shouldn't generate a range check error, as the target type is signed. Note that shifting the loop variable to Int64 still triggers the range check error

[fpc-pascal] Range checks

2018-01-27 Thread C Western
The following innocuous looking code generates a range check error: {$R+} function Count: qword; begin Result := 0; end; var i: Integer; begin for i := 0 to Count-1 do WriteLn(i); end. I can (more or less) see why, but it means that I can't (for example) compile the Cocoa widget set

Re: [fpc-pascal] Install gdb on MacOSX to debug fpc applications

2016-12-10 Thread C Western
I think you have to compile gdb yourself - see posts on the gdb mailing lists: https://sourceware.org/ml/gdb/2016-11/msg00011.html https://sourceware.org/ml/gdb/2016-11/msg4.html When I last looked, macports had not been updated. I think the com.apple.taskgated.plist info does not apply

Re: [fpc-pascal] C translation question

2016-10-22 Thread C Western
On 22/10/16 10:06, Ryan Joseph wrote: j := i + 1; might want this at the end of the loop. Colin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC trunk internal error 200310221

2016-08-24 Thread C Western
On 24/08/16 14:31, wkitt...@windstream.net wrote: On 08/24/2016 07:27 AM, C Western wrote: I have recently started seeing FPC internal error 200310221 when compiling a changed program with lazarus using the trunk fpc version. If I do a build, the problem goes away, only to recur after a random

[fpc-pascal] FPC trunk internal error 200310221

2016-08-24 Thread C Western
I have recently started seeing FPC internal error 200310221 when compiling a changed program with lazarus using the trunk fpc version. If I do a build, the problem goes away, only to recur after a random number of changes/recompiles. The program I am working on is quite large, so it is not

Re: [fpc-pascal] reference-counted function results not initialized to nil

2016-06-26 Thread C Western
On 26/06/16 11:09, Jürgen Hestermann wrote: Am 2016-06-26 um 01:19 schrieb Karoly Balogh (Charlie/SGR): No. Local variables are not initialized by default. Managed type or not, doesn't make a difference. This is not true. Local variables of managed types are of course initialized! If you

Re: [fpc-pascal] cocoa programming without objective-pascal mode

2014-11-03 Thread C Western
On 02/11/14 18:38, Felipe Monteiro de Carvalho wrote: The Cocoa interface is advancing fast. I am even running out of known bugs, so other people testing would be appreciated. I have some interest in this. Is http://wiki.lazarus.freepascal.org/Cocoa_Interface reasonably up to date as to how

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-03 Thread C Western
On 10/03/2010 04:48 PM, José Mejuto wrote: Hello FPC-Pascal, Sunday, October 3, 2010, 9:10:34 AM, you wrote: JMg Lazarus Debugger code causes one range error which can be fixed with a JMg typecast. FPC showed the point clearly. Issue #0017537. JMg TApplication.HandleException Range check

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-03 Thread C Western
On 10/03/2010 05:36 PM, C Western wrote: On 10/03/2010 04:48 PM, José Mejuto wrote: Hello FPC-Pascal, Sunday, October 3, 2010, 9:10:34 AM, you wrote: JMg Lazarus Debugger code causes one range error which can be fixed with a JMg typecast. FPC showed the point clearly. Issue #0017537. JMg

Re: [fpc-pascal] Access violation during compilation and linking

2009-03-12 Thread C Western
Jonas Maebe wrote: Roland Turcan wrote on do, 12 mrt 2009: 12.3.2009 10:09 - Jonas Maebe jonas.ma...@elis.ugent.be JM Roland Turcan wrote on do, 12 mrt 2009: Can I build FPC with debug information to get more details where the exception occured and not to get only addresses from stack, but

[fpc-pascal] Vandalism

2008-03-11 Thread C Western
There seems to be some vandalism on the following page: http://community.freepascal.org:1/docs-html/fpctoc.html the Documentation table of contents (with http://community.freepascal.org:1/docs-html/fpctoc.html comments). and clicking through indicates the same person has been active for

Re: [fpc-pascal] Translating scientific libraries

2005-07-21 Thread C Western
Michael Van Canneyt wrote: On Thu, 21 Jul 2005, Agustin Barto wrote: I'd like to use some scientific/math librearies like LAPACK and GNU/GSL with fpc. I already know about h2pas and external subroutines and variables, but I wanted to know if these methods will be able to deal with