fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Illegal expression when redeclare typed constant1
Suppose I have unit mytest; interface const MY_VALUE = 1; MY_INT_VALUE: integer = 1; implementationend. and second unit unit mytest2; interface uses mytest;…
- Cross-compile for Linux Arm (RaspberryPi) on Windows 10?2
I have latest Lazarus/Fpc on my Windows 10 main computer, but also on a number of RaspberryPi (3 and 4) devices. If I create an application on Windows and want to build…
- Is Online Package Manager not a standard part of Lazarus?1
I thought Online Package Manager was standard since it appeared in all earlier installs I have made both using Sourceforge Windows installers or via sources downloaded…
- Downloaded cross-compiler from Sourceforge - wiki incorrect?6
I tried to add a cross-compiler for Win32 to my existing Lazarus 2.2.4 installation on Windows 10 x64. So I followed the instructions on the fpc wiki:…
- Working with anonymous functions1
I'm testing FPC-trunk and I'm especially interested in using anonymous functions because they should simplify working with TThread.Synchronize and others a lot. I…
- FPC crashes with Internal error 200502052 compiling shared library on m68k5
On Debian 12 (Bookworm) FPC release version 3.2.2 crashes on m68k when trying to build a shared library. See https://buildd.debian.org/status/package.php?p=doublecmd…
- Lazarus Release 2.2.60
The Lazarus team is glad to announce the release of Lazarus 2.2.6. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and…
- possible bug in blockwrite3
I'm using FPC 3.2.0, though I doubt anything changed in the most recent releases, though I'll try those if folks think it's worth doing so. What I ran across yesterday…
- Building compiler which stalls5
Following up I’m trying to rebuild my compiler from sources and something strange has happened. Here’s the build command I used and it builds the compiler up to step…
- Function reference confuses function pointer?5
This caused me a nasty debugging confusion, it’s a bug right? In the program below the two parameters passed to TBinding.Create have the same address despite being…
- Duplicate identifier "$result"2
I’m trying to build a project on Windows and I’m getting the error mentioned in the subject. It appears to be from a nested function in a generic class which is…
- CalDAV1
How to connect to nextcloud CalDAV using fpc? I need to connect to one calendar, list dates, delete dates, create dates. Mattias
- aligned?2
What does the fpc built-in function aligned? For example in FloatToStrFIntl: Str(Double(Extended(Aligned(Value))):precision+7, Result); Mattias
- star operator on enum types2
I found in a fpc program a statement sort of: Type TSomeType = (a,b,c) TaType = set of TSometype var setA,setB: TaType; ..... *if setA * setB = [] then…
- FpcGui, MSEGui0
Have you worked with both? Both are pure FreePascal GUIs, not depending of ant external library. What are the differences? Which one do you think is more mature, …
- A rather good blog post on Object Pascal that I thought you folks might enjoy7
Why Object Pascal is More Than Meets the Eye: Exploring the Power and Versatility of Delphi and FreePascal…
- Why in {$mode delphi} it works and in {$mode objfpc} it doesn't?7
I stumbled into a problem I don't understand. I'm developing a little program for an ftp client. In order to connect to the site I need the site address from the site…
- TSQLQuery doesn't work with a lookup field if it is a memo (text)1
I just found out that if I try to create a lookup field that points to a memo field (in postgresql the field is defined as text), it bombs out with "list index (-2) out…
- Dynamic array question2
is there a way how to have dynamic array "inside" another dynamic array? program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$ENDIF} Classes,…
- Open array in object constructor gives error14
Why is using the open array parameter illegal using the Object type? ======================== {$mode objfpc} program test; type TMyObject = object constructor…
- TFPHttpClient & TFPHttpServer4
I would like to write some code where a TFPHttpClient component sends a minimal json payload to a TFPHttpServer that (reads the payload). The working of the…
- Local Type T and generics2
I have local type TTempItem, i.e. declared inside method of a generic class. When I write: type TTempItem = record Item: T; Empty:…
- Programming Pascal using an AI Chatbot13
The following page hosts a series of Pascal programming questions I asked an AI chatbot system while testing its abilities. https://www.getlazarus.org/aichatbot
- For Loop with QWord1
I'm wondering why I can't have the following: Var I: QWord; Begin For I := 1 To N Do . It generates an error: Error: Ordinal expression expected If I change it to…
- Working on a new way to educate people about pascal42
I had a new idea for an interface design to help people who either are not into programming yet or have only used a language other than Free Pascal. Please see this…
- Generic threadlist0
Hi, I made a generic threadlist for the unit fgl. I'm wondering what is the opinion on stuff like that. Specifically it's T: TObject and not for "pointers." I had made…
- fcl-web websocket9
I am trying to test the websocket client in fcl-web by making a simple echo client. I have been unable to make it work using fpc trunk on linux64. I also crosscompiled…
- Unrelated type helpers with the same members? Implement an interface with a type helper?10
Hi what I want to do is similar to this question here: https://en.delphipraxis.net/topic/423-rtti-determine-record-helper-type-for-a-base-type/ I am going to create…
- SqlDB TSQLQuery sqoAutoApplyUpdates does not work with ExecSQL9
On MSSQL i use a stroed procedure to count a value in a table and use the following statement in Lazarus I must extra write an ApplyUpdates, because the…
- debugserver and dbugintf1
I'm using FPC 3.2.2 as installed with Lazarus 2.2.4. I'm using the debugserver/dbugintf for some time and implemented some small changes to improve this duo. The files…
