Re: [fpc-pascal] Multi-OS fp.ini and fp.cfg ?

2017-08-16 Thread wkitty42
On 08/16/2017 04:27 PM, Ched wrote: Dear FPCers, Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both under Linux and under Windows ; when switching from one to the other, the

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
Alright, its compiling! It was wrong path in fpc.cfg. The DEB installation creates a directory structure under the fpc directory that matches this: /lib/fpc/3.1.1/units/$fpctarget Thanks again! On 08/16/2017 11:22 PM, Tomas Hajny wrote: On Wed, August 16, 2017 23:08, kapibara via fpc-pascal

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
To be sure fpc.cfg is found I started the compilation from fpc's bin directory where the fpc.cfg is located. roger@bikupan:~/fpc/fpc_svn/ bin$ ./fpc /home/roger/fpc/fptest_working/fptest.pas Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl an

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread Tomas Hajny
On Wed, August 16, 2017 23:08, kapibara via fpc-pascal wrote: > The old SVN version is now in play, so far so good! But then "Can't find > unit system" happened: You need RTL (and other required units, e.g. from packages) compiled with that compiler version and provide path to it either using fpc.

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
The old SVN version is now in play, so far so good! But then "Can't find unit system" happened: roger@bikupan:~/fpc/fptest_working$ fpc fptest.pas Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for x86-64 Compili

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
You're right, now I fixed that and "which fpc" reports the SVN version! On 08/16/2017 10:15 PM, Tomas Hajny wrote: On Wed, August 16, 2017 21:15, kapibara via fpc-pascal wrote: I meant to say that system fpc is put AFTER the SVN fpc in the path. Due to the missing slash at the beginning of th

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread Tomas Hajny
On Wed, August 16, 2017 22:16, kapibara via fpc-pascal wrote: > Ah, so FP has no versions other than the official releases then? (2.6.0, > 2.6.2, 2.6.4 and so on) > > Why doesn't FP use the same compiler revision as the SVN sources it > comes with? Because the fp executable is compiled at the same

[fpc-pascal] Multi-OS fp.ini and fp.cfg ?

2017-08-16 Thread Ched
Dear FPCers, Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both under Linux and under Windows ; when switching from one to the other, the files are slightly corrupted and shoul

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread Tomas Hajny
On Wed, August 16, 2017 21:15, kapibara via fpc-pascal wrote: > I meant to say that system fpc is put AFTER the SVN fpc in the path. Due to the missing slash at the beginning of the PATH value? ;-) Obviously, that only answers the reason of the 'which fpc' command, whereas the compiler version use

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
Ah, so FP has no versions other than the official releases then? (2.6.0, 2.6.2, 2.6.4 and so on) Why doesn't FP use the same compiler revision as the SVN sources it comes with? Because the fp executable is compiled at the same time as fpc? Alright then, I'll try instead: fpc test.pas Btw,

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread Marco van de Voort
In our previous episode, kapibara via fpc-pascal said: > > I want to use the fp editor to run the test, but it seems as the > "systemic" 2.6.4 is being used for compiling instead of the SVN version. Then you use a 2.6.4 FP. FP does not call the compiler, it has an own version of it internally.

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
I meant to say that system fpc is put AFTER the SVN fpc in the path. On 08/16/2017 09:09 PM, kapibara wrote: PATH=home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/usr/bin:/bin export PATH=home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/us

[fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
For debugging reasons I have installed fpc 2.6.4 on Debian so I can compile some old SVN revisions, number 32959 for example. I want to use the fp editor to run the test, but it seems as the "systemic" 2.6.4 is being used for compiling instead of the SVN version. The bug doesn't show up in 2.6

Re: [fpc-pascal] Defining sonames?

2017-08-16 Thread Graeme Geldenhuys
On 2017-08-16 18:14, Sven Barth via fpc-pascal wrote: Wrong. Take an empty program that includes the X unit: In private I emailed Fred the following URL - it explains in plain English what is required and what really happens in the ELF binary format and such. Fred finally understood. On a sid

Re: [fpc-pascal] Defining sonames?

2017-08-16 Thread Sven Barth via fpc-pascal
On 14.08.2017 15:19, Fred van Stappen wrote: > A concrete example. > > A Linux/FreeBSD fpc release was compiled using the pascal headers for > libX11.so.6 and using symlink libX11.so >> libX11.so.6.0.8. > > This release was installed on a system (with libX11-dev too to make it > work). > > If, s

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Benito van der Zander
Hi, very stupid defaults indeed. I just had a bug last week, because I was using TStringList as map and forgot to change it to case-sensitive Cheers, Benito Am 16.08.2017 um 15:48 schrieb Gabor Boros: 2017. 08. 16. 15:21 keltezéssel, Michael Van Canneyt írta: Because the quotes must be

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Graeme Geldenhuys
On 2017-08-16 14:48, Gabor Boros wrote: SL2.QuoteChar:=#0; solved my problem. But strange if the TStringList think from a starting " the string is quoted. For example if data.cvs contains "abc|89|0 I got the next result with my example program (without QuoteChar trick): 0 * abc|89|0 Try using t

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Gabor Boros
2017. 08. 16. 15:21 keltezéssel, Michael Van Canneyt írta: Because the quotes must be the first and last character of each string (or "cell"). As noted in another reply, set the quote character to something unused, and it will disable (or circumvent) quoting altogether. SL2.QuoteChar:=#0; sol

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Gabor Boros
2017. 08. 16. 15:15 keltezéssel, Kevin Jesshope írta: Setting the quotechar to something impossible (linefeed, #0 etc) stops the quote processing. SL2.QuoteChar:=#0; solved my problem. Thank you! Gabor ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Michael Van Canneyt
On Wed, 16 Aug 2017, Gabor Boros wrote: Hi All, With the attached example program and data.csv I got the next result: 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * O 5 * fdsfds 6 * 654645645 "O" fdsfsd 7 * hgfgfedw 8 * fg 9 * 321.544 10 * 89 11 * 0 "O" fdsfds - broken into two parts which

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Kevin Jesshope
Setting the quotechar to something impossible (linefeed, #0 etc) stops the quote processing. SL2.QuoteChar:=#10; results in 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * "O" fdsfds 5 * 654645645 "O" fdsfsd 6 * hgfgfedw 7 * fg 8 * 321.544 9 * 89 10 * 0 Regards Kevin Jesshope - In Touch Com

[fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Gabor Boros
Hi All, With the attached example program and data.csv I got the next result: 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * O 5 * fdsfds 6 * 654645645 "O" fdsfsd 7 * hgfgfedw 8 * fg 9 * 321.544 10 * 89 11 * 0 "O" fdsfds - broken into two parts which is bad from my POV. See 4 * O and 5 * fds

Re: [fpc-pascal] Best way to insert bytes into a TBytes variable?

2017-08-16 Thread Michael Van Canneyt
On Wed, 16 Aug 2017, Graeme Geldenhuys wrote: On 2017-07-25 09:54, Bo Berglund wrote: buffer in an old application, so I need to write efficient replacements for certain string functions (Delete, Insert, Copy etc). Now I am wondering if there is a better way to do the Insert() command than t

Re: [fpc-pascal] Best way to insert bytes into a TBytes variable?

2017-08-16 Thread Graeme Geldenhuys
On 2017-07-25 09:54, Bo Berglund wrote: buffer in an old application, so I need to write efficient replacements for certain string functions (Delete, Insert, Copy etc). Now I am wondering if there is a better way to do the Insert() command than this: Reading that... All I can think of is the