fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Enum range check error6
Is this a bug in generics with default()? ===================== type TEnum = (Unused = '.'); generic TSomething<T> = class function Get: T; end; TEnumeratedSomething =…
- netdb, DNS and TCP4
To keep track of the work I've been doing on DNS in netdb, I created bug #37906 in Mantis. https://bugs.freepascal.org/view.php?id=37906 I've attached to a note on that…
- Adding file to string to the RTL29
I often need to use a function which reads a file into a string, as is so common in so many scripting languages. Can it be considered to add something like this to the…
- Are record fields zeroed on declaration of a record?10
I would like to know if data containers of type packed record are zeroed when the item is declared? type TMyRecord = packed record AField1: byte; AField2: word; AField3:…
- uses in '' relative paths5
I'm trying "uses in" which I never knew existed before. The idea is that I provide a path to TOML.pas using -Fu then use the "in" syntax to reference the units which are…
- Precedence of compiler switches/directives1
I'm curious about who wins, if switches/directives are set to different values in different places. They could be set in fpg.cfg Command line or Lazarus lpi Directives…
- Merging units4
Something that's bothered me for a while I wanted to ask about. I have a package I want to distribute which has 2 or more units, all of which are required to use the…
- Re: Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets0
Hi From time to time i check, whether building the cross-compilers works on macOS. However, I do not really test the cross-compilers or even run fpc programs on these…
- Dynamic Arrays in Procedures5
I'm wondering if there is a way to pass an array of values to a Procedure without defining an array variable.. For example, if I have a Procedure: Procedure…
- Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets1
I was wondering if there are still users of Free Pascal compiler targeting arm-nds, arm-gba or powerpc-wii. I recently managed to re-generate 3.2.0 cross-install files…
- Converting date formats6
I have some dates formats like this which I would like to convert to TDateTime. Are these supported in the RTL? I tried using the StrToDate functions but I got errors.…
- TOML parser0
I was going to do a YAML parser but I decided on TOML instead because: 1) appeared easier to parse 2) the format is simpler to understand/less bloated 3) looks nicer for…
- TFPGMapObject duplicate errors5
I expected to get an assertion when I added the duplicate key "foo". What am I doing wrong? type TSomeMap = specialize TFPGMapObject<String, TObject>; var map: TSomeMap;…
- Cross platform question about lpi file content6
I am trying to find the cause of a linker error when building my application on Linux. While doing this I looked in the project file projname.lpi and found this strange…
- json parser line numbers5
the line numbering of the json parser has been changed recently. It used to say "Error at line 1"... when there was an error in the first line, but now it says "Error at…
- basic question on begin, end;11
I have a basic shuffle routine. I put being, end statements in the outer loop for clarification. It ended up producing random results. Commenting out the begin, end…
- Buffer size for TCP DNS queries in netdb4
I've spent some time this past couple of weeks reading through the DNS resolver code in netdb and poring over RFCs that specify the protocol with a view to adding…
- fpcmake packaging7
I've never used fpcmake before and instead relied on my own custom build system solutions which are a pain to maintain and non-standard which it makes extra work…
- Coalition for App Fairness0
Leading App Developers Form The Coalition for App Fairness to Promote Competition and Protect Innovation on Digital Platforms…
- stdcall without the ;9
I just compiled a lazarus project made in 2105 with fpc 3.2.0 and, while it works here, it fails when the customer runs it. I noticed that I'm using a dll and the…
- -Fu unit search path and network paths9
are supported in -Fu (unit search path) networks paths? i.e. -Fu\\server\share -Fu\\server\share\path ? When I am compiling project, which is located on local drive, but…
- netdb and DNS queries for MX, TXT, and other resource types3
I'm in need of a library to perform DNS lookups for a range of different resource types such as MX, TXT, PTR and so on. At first I thought that netdb would do the job,…
- String literals and code page of .pas source file37
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…
- Ethernet Relays17
Does anyone have any advice on how to get started sending commands from FPC to use these ethernet relays: https://www.amazon.com/gp/product/B076CNJNFH Default IP…
- FPC for FreeBSD/PowerPC643
I'm attempting to port FPC to Freebsd/PowerPC64 and need some help. I've added initial code to get started. However, when trying to cross compile I'm getting an…
- How to build for arm6 in RaspberryPi on arm7?7
I am using RPi3 and RPi4 platforms when working on RPi projects with Lazarus 2.0.8 and Fpc 3.0.4. Now I realized that the binaries I create will probably not work on…
- Sending Hex codes over TCP/IP7
I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP, but everything I find seems to want to send and receive…
- Fpc make questions...3
I am not very informed about how make works when building fpc installations, I have just used commands I have gathered online and it has worked... Now I would like to…
- TFPObjectlist example5
Am I correct that TFPObjectlist is kind of like Tstringlist, except instead of creating and array of strings, it creates an array of objects? I'm wanting to do something…
- How to implement a circular buffer object in pascal?10
I would like to create a buffer into which a thread can push incoming data and the main thread can extract it for processing. Data are coming from the serial port in a…
