[fpc-pascal] compiler option for $J directive

2017-10-07 Thread Mr Bee via fpc-pascal
Hi, Is there any FPC command line option for writable constanst directive {$J} or {$WRITEABLECONST} ?  Since I knew this directive, I always set it to {$J-} (because {$J+} is ridiculous). However, sometimes I forget to put it in to my source code. So, I'd like to put it in to a batch script that

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread pascalX
On 07/10/17 19:55, Florian Klämpfl wrote: Am 07.10.2017 um 12:14 schrieb Sven Barth via fpc-pascal: Am 07.10.2017 11:11 schrieb "Karoly Balogh (Charlie/SGR)" mailto:char...@scenergy.dfmk.hu>>: Hi, On Sat, 7 Oct 2017, Sven Barth via fpc-pascal wrote: So where is my cross compiler ?? Thanks

Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 21:08 schrieb "Paul Nance" : > > I've always (since Turbo Pascal and now with Free Pascal) used FILESIZE. It works like a charm. > Even if you do it in assembly its done the same as its done in pascal. FileSize() has the disadvantage that you need to open the file. But what if you do

Re: [fpc-pascal] Managed properties idea

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 17:15 schrieb "Marcos Douglas B. Santos" : > > On Fri, Oct 6, 2017 at 4:17 PM, Sven Barth via fpc-pascal > wrote: > > Am 06.10.2017 20:52 schrieb "Marcos Douglas B. Santos" : > >> > And reference counting like in e.g. C++ "shared pointers", that can > >> > wrap any > >> > class, wit

Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Paul Nance
I've always (since Turbo Pascal and now with Free Pascal) used FILESIZE. It works like a charm. Even if you do it in assembly its done the same as its done in pascal. On Oct 6, 2017 7:14 PM, "James Richters" wrote: I am wondering how to get the file size reported by the OS for a particular file

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread Florian Klämpfl
Am 07.10.2017 um 12:14 schrieb Sven Barth via fpc-pascal: > Am 07.10.2017 11:11 schrieb "Karoly Balogh (Charlie/SGR)" > >: >> >> Hi, >> >> On Sat, 7 Oct 2017, Sven Barth via fpc-pascal wrote: >> >> > > So where is my cross compiler ?? >> > > >> > > Thanks for any

Re: [fpc-pascal] Managed properties idea

2017-10-07 Thread Marcos Douglas B. Santos
On Fri, Oct 6, 2017 at 4:49 PM, Michalis Kamburelis wrote: > 2017-10-06 20:52 GMT+02:00 Marcos Douglas B. Santos : > [...] >>> In this case, in which you indeed want two of these features simultaneously, >>> I advise COM interfaces myself :) That's why they are documented after all. >> >> I can us

Re: [fpc-pascal] Managed properties idea

2017-10-07 Thread Marcos Douglas B. Santos
On Fri, Oct 6, 2017 at 4:17 PM, Sven Barth via fpc-pascal wrote: > Am 06.10.2017 20:52 schrieb "Marcos Douglas B. Santos" : >> > And reference counting like in e.g. C++ "shared pointers", that can >> > wrap any >> > class, without any additional feature (in Pascal we may get this with >> > "manag

Re: [fpc-pascal] Obtain file size?

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 01:13 schrieb "James Richters" : > > I am wondering how to get the file size reported by the OS for a particular file without opening it. I tried to search for ‘Free Pascal File Size’ and variations but all I get are things like this: > > > > https://www.freepascal.org/docs-html/rtl

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread pascalX
On 07/10/17 11:14, Sven Barth via fpc-pascal wrote: Am 07.10.2017 11:11 schrieb "Karoly Balogh (Charlie/SGR)" mailto:char...@scenergy.dfmk.hu>>: > > Hi, > > On Sat, 7 Oct 2017, Sven Barth via fpc-pascal wrote: > > > > So where is my cross compiler ?? > > > > > > Thanks for any help and s

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 11:11 schrieb "Karoly Balogh (Charlie/SGR)" < char...@scenergy.dfmk.hu>: > > Hi, > > On Sat, 7 Oct 2017, Sven Barth via fpc-pascal wrote: > > > > So where is my cross compiler ?? > > > > > > Thanks for any help and suggestions. > > > > A single compiler binary can always compile for a

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread pascalX
On 07/10/17 10:01, Sven Barth via fpc-pascal wrote: Am 07.10.2017 10:57 schrieb >: > > Hi, > > I am having trouble getting fpc to cross-compiler for win64 target. > > I'm using fedora 26 which supplies 3.0.2 > > I used instructions here to create the cross comp

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread pascalX
On 07/10/17 10:01, Sven Barth via fpc-pascal wrote: Am 07.10.2017 10:57 schrieb >: > > Hi, > > I am having trouble getting fpc to cross-compiler for win64 target. > > I'm using fedora 26 which supplies 3.0.2 > > I used instructions here to create the cross comp

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread Karoly Balogh (Charlie/SGR)
Hi, On Sat, 7 Oct 2017, Sven Barth via fpc-pascal wrote: > > So where is my cross compiler ?? > > > > Thanks for any help and suggestions. > > A single compiler binary can always compile for all supported targets of > that processor. So as long as all the units are available you simply > need to

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread Karoly Balogh (Charlie/SGR)
Hi, On Fri, 6 Oct 2017, pasc...@piments.com wrote: > This builds fine using the stock fpc 3.0.2 with linux target. However, > the supposed cross-compiler seems to be trying to build for linux. The cross compiler binary itself is only CPU specific, not OS specific. And because for the cross CPU

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2017 10:57 schrieb : > > Hi, > > I am having trouble getting fpc to cross-compiler for win64 target. > > I'm using fedora 26 which supplies 3.0.2 > > I used instructions here to create the cross compiler using trunk fpc since the fedora fpc-src does not seem to have the full Makefile struc

[fpc-pascal] getting cross with the cross compiler

2017-10-07 Thread pascalX
Hi, I am having trouble getting fpc to cross-compiler for win64 target. I'm using fedora 26 which supplies 3.0.2 I used instructions here to create the cross compiler using trunk fpc since the fedora fpc-src does not seem to have the full Makefile structure: http://wiki.lazarus.freepascal.or