[fpc-pascal] Filters and PTOP questions

2017-12-12 Thread cbase1
Is the simple example below the best way to implement a filter in FPC? The example code blanks column 2 of a text file.  This program works with both "blankCol2 filename" and "blankCol2

Re: [fpc-pascal] Overloading IN operator

2017-12-12 Thread Sven Barth via fpc-pascal
Am 13.12.2017 02:37 schrieb "Fabio Luis Girardi" : Hi all! I want to extend some operators in Freepascal. I want to achieve something like this: if aStr in ['string item 1', 'string item 2', 'string item 3'] then ... else ...; Following the examples to overload

Re: [fpc-pascal] Cannot find entry point of a routine inside a windows 64 dll

2017-12-12 Thread Sven Barth via fpc-pascal
Am 13.12.2017 03:04 schrieb "Dennis" : I am converting my windows 32 program to 64 bit. It compiled with lazarus without any problem.(fpc 3.0.2) I also compile the dll that is used, into a 64 bit dll. However, when I ran the 64 bit program, windows reported 'cannot find

Re: [fpc-pascal] Overloading IN operator

2017-12-12 Thread Vojtěch Čihák
It seems that overloading is possible but compiler does not want to accept anonymous array of strings. It works with variable or with anonymous array of integers (FPC 3.0.4).   V. __ Od: Fabio Luis Girardi

[fpc-pascal] Cannot find entry point of a routine inside a windows 64 dll

2017-12-12 Thread Dennis
I am converting my windows 32 program to 64 bit. It compiled with lazarus without any problem.(fpc 3.0.2) I also compile the dll that is used, into a 64 bit dll. However, when I ran the 64 bit program, windows reported 'cannot find the entry point "the routine name in the dll" (the dll file

[fpc-pascal] Overloading IN operator

2017-12-12 Thread Fabio Luis Girardi
Hi all! I want to extend some operators in Freepascal. I want to achieve something like this: if aStr in ['string item 1', 'string item 2', 'string item 3'] then ... else ...; Following the examples to overload operators, I wrote: operator in (a:String; b:array of string):Boolean; var c:

Re: [fpc-pascal] linker failed with fpc rpm on CentOS 7

2017-12-12 Thread Mattias Gaertner
On Tue, 12 Dec 2017 23:16:03 +0100 Pierre Muller wrote: >[...] > Normally the .tar file should have been generated on a system that uses > an earlier GNU binutils version, avoiding the problem if > a Free Pascal program is linked using a less recent GNU linker version. >

Re: [fpc-pascal] linker failed with fpc rpm on CentOS 7

2017-12-12 Thread Pierre Muller
Le 12/12/2017 à 20:49, Mattias Gaertner a écrit : > Hi, > > I installed fpc-3.0.4-1.x86_64.rpm from sourceforge on CentOS 7 and > compiling even the simplest of programs gives: > > /bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o: > unrecognized relocation (0x2a) in section `.text'

Re: [fpc-pascal] fpc2js

2017-12-12 Thread Victor Campillo
On 06/12/17 19:32, Mattias Gaertner wrote: Yes, but since no one compiles the package manually, it is unnecessary. Hi Mattias, Yes, it is unnecessary, but I suppose that many people could try to compile the packages as a first approach to the project as I did, just to test if everything

[fpc-pascal] linker failed with fpc rpm on CentOS 7

2017-12-12 Thread Mattias Gaertner
Hi, I installed fpc-3.0.4-1.x86_64.rpm from sourceforge on CentOS 7 and compiling even the simplest of programs gives: /bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' /bin/ld: final link failed: Bad value Is this known? Mattias

[fpc-pascal] Freepascal Zip with Password?

2017-12-12 Thread James Richters
I've been using Zipper http://wiki.freepascal.org/paszlib#TZipper to create zip files with FPC, but I don't see how to create one with a password. Is this possible with Zipper or is there another Zip library I can use with FPC to create a password protected zip file? I would rather be able to