fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Link on another host - how to collect and copy all files?2
I've got into troubles with a dynamic library on Linux. It uses pthreads but on the target system glibc 2.24 is used, while on my development machine 2.34 is being used.…
- Building fpc 3.2.2 from sources - which compiler to use for install?2
I am building fpc 3.2.2 from sources on a Linux Mint x64 box. When I compile fpc inside the downloaded source folder I use this: make all FPC="$HOME/devel/fpc/ppcx64"…
- Getting Last User Input reliably10
I'm trying to get the time lapsed since the last user input with keyboard or mouse on a Windows PC. For this I am doing: GetLastInputInfo(Last_Input_Info); IdleTime:=…
- How To: Use lib curl example6
I was having some problems using vanilla sockets and OpenSSL to read a few specific web pages using HTTPS. Normally I don't have any problems using HTTPS, but with a few…
- TProcess Running is unreliable on Linux2
On Linux using 3.3.1 build of FPC I've found that in many situations the Running property of TProcess is unreliable. Is this a problem with which anyone is familiar?…
- Named optional arguments17
This was discussed before some years ago with no conclusion () but I'd like to bring it up again. Can we consider extending the variant dispatch call named parameters to…
- target mipsel-embedded2
I am trying to build a mipsel-embedded compiler. It says here that this is possible https://wiki.freepascal.org/TARGET_Embedded_Mipsel. I followed the steps below git…
- Make clean error when building fpc 3.2.2 from sources3
I am trying to build fpc 3.2.2 on an Ubuntu 20.04.3 virtual machine while documenting my steps along the way. I am doing this so I can later repeat it on the real target…
- Inline function parameters9
Is there anyway a function parameter could be inlined in FPC? This would go a long way in helping to parameterize functions that have tight loops in them. If there isn't…
- First Version Vector Toolkit in OpenGL12
You might have read in my prior message to this group my announcement of a vector graphics and physics library I've been writing for FPC. In this first release, I am…
- Cross-compiling and warnings from linker0
Using cross-compiler from x86-linux to arm-linux, I keep getting a lot of warnings at the linking stage of my programs, in the form: /opt/[...]/arm-linux-gnueabihf-ld:…
- Keeping current with FPC Source on gitlab2
I'm trying to set things up so I can stay up to date with the latest FPC sources on gitlab. I'm following the instructions found here:…
- ExtractStrings by line in Windows3
On Mac I had used ExtractStrings([LineEnding], [], str, list); to split a string by line but on Windows LineEnding is 2 chars long so the char set parameter doesn't work.
- String error on Windows6
Why isn't this syntax valid on Windows? Very confused. ============================ {$mode objfpc} program WindowsTest; var s: String; begin s += ';'; // Syntax…
- Trying to update to: Xcode 12.5, FPC 3.2.25
I'm jumping up to the latest xcode 12.5to be able to develop on iOs 14.x My trusty old FPC 3.0.5 worked just fine for iOs Target. But the simulator is a different…
- Lazbuild error on Windows4
I'm trying to build a Lazarus project on Windows and I've ran into a problem. Since I barely know Windows all I have known to do is download the latest version of the…
- Writing Pascal Physics and Vectors12
I've been working on writing Pascal bindings a friendly object orient interface to a few open source projects. I have put together Chipmunk2D, NanoVG, MiniMP3, and SDL2…
- My Linux service application consumes 10% CPU when idling - why?15
So I have this service application which is ported from a Windows Delphi 2007 TService app to a regular command line program for use in Linux. It runs on a RaspberryPi3B+
- Unable to link static lib files on Window1
I know I was previously able to link static library files on Windows with FPC, but hadn't used this feature in a while. When I recently tried using static linking I am…
- bounded array types as procedure arguments2
Was trying to declare a procedure with an array argument, e.g. procedure p(a: array[1..9] of int64), and the compiler complained as it seems only accepts open arrays. …
- FPC 3.2.2 Build Error on Mac2
I am trying to build FPC from 3.3.2 sources on a Mac and am getting errors complaining about two binary files having different sizes. Could someone help me figure out…
- Repost: TFieldType declaration change in FPC fixes_3_2 branch4
/Reposted with correct branch identifier/. I thought that a fixes branch was only for bug fixes and not for issuing non-backwards compatible changes. However, TFieldType…
- TFieldType declaration change in fixes2_2 branch0
I thought that a fixes branch was only for bug fixes and not for issuing non-backwards compatible changes. However, TFieldType in db.pas now has 6 extra elements.The…
- Why the difference in the rounded results?5
I got different results with 32bit vs. 64bit, 3.2.2 vs. 3.3.1, FPC vs. Delphi. Why? var d1,d2:Double; begin d1:=20.5; d2:=1.05; Writeln(RoundTo(d1*d2,-2));…
- Clone() in Linux x86-64 RTL0
I just checked that clone() is only present in i386 Linux RTL but it is not defined in x86-64. Am I right? Or, I am missing something. Matias
- 1
- TEnumerator - After the last element?1
I need to know the current position is after the last element. The attached solution demonstrate what I want. Is an internal solution exists for this task? I not found…
- Is the Lazarus list down? (2021-10-04)4
I have tried to post to the list (via GMane) but it does not come through. And the last post made seems to be on 2021-10-01... Is the list itself down or is there a…
- FreePascal and MySQL 8.012
I just upgraded to a new laptop and see that MariaDB is using MySQL 8.0 . I also see there is no connector in my Free Pascal install for MySQL 8.0. I do see that there…
- String.Split(const Separators: array of Char; Options: TStringSplitOptions)2
I must be missing something obvious. But given the following definition of the Split() helper function for strings: Function Split(const Separators: array of Char;…
