[fpc-pascal] String literals and code page of .pas source file

2020-09-02 Thread LacaK via fpc-pascal
Hi *, I would like to have source file in Windows-1250 encoding, where are stored literal strings like 'áéíóčž' in Windows-1250 encoding (I share this one file between FPC/Lazarus and Delphi 7). Windows-1250 is also ANSI code page of my Windows OS. In source file I have: {$IFDEF FPC}  

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Sven Barth via fpc-pascal
Carlo Kok via fpc-pascal schrieb am Mi., 2. Sep. 2020, 15:01: > On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote: > > Carlo Kok via fpc-pascal schrieb am > Mi., 2. Sep. 2020, 11:09: > > > > Is there something else I need to do to allow FFI to work on arm64? (Does > this depend on

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Carlo Kok via fpc-pascal
On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote: > Carlo Kok via fpc-pascal schrieb am Mi., 2. > Sep. 2020, 11:09: >> __ >> >> Is there something else I need to do to allow FFI to work on arm64? (Does >> this depend on a dylib? or a static library?, and do I need to explicitly

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Sven Barth via fpc-pascal
Carlo Kok via fpc-pascal schrieb am Mi., 2. Sep. 2020, 11:09: > Seems I had to use ffi.manager.pas too. However when building then it > fails with; > > Undefined symbols for architecture arm64: > > "_ffi_call", referenced from: > _FFI.MANAGER_$$_FFIINVOKE$crc7AE31AA0 in ffi.manager.o >

Re: [fpc-pascal] fpcmake packaging

2020-09-02 Thread Ryan Joseph via fpc-pascal
> On Sep 1, 2020, at 9:04 PM, Tony Whyman via fpc-pascal > wrote: > > My primary motivation for going with fpcmake is that it is a very good fit > with the debian package management system (and rpmbuild). My normal build > target is Ubuntu and hence I want to generate .deb files in order to

Re: [fpc-pascal] Using built-in serial instead of synaser and the like for Linux console app?

2020-09-02 Thread Bo Berglund via fpc-pascal
On Tue, 1 Sep 2020 20:31:57 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: >Yes, but you can only override a virtual constructor. The TThread >constructor is not virtual. I am doing the setup in a different way so I don't have to use Create. My new FpSerialPort works fine now with the

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Carlo Kok via fpc-pascal
Seems I had to use ffi.manager.pas too. However when building then it fails with; Undefined symbols for architecture arm64: "_ffi_call", referenced from: _FFI.MANAGER_$$_FFIINVOKE$crc7AE31AA0 in ffi.manager.o "_ffi_closure_alloc", referenced from: