fpc-pascal
Subscribe to this list Your subscription
Latest threads
- XML Canonicalization Support6
Does the fcl-xml package supports xml canonicalization?
- Loading PNG files as OpenGL textures32
I’m coming from the Mac and I’d like to replace some code that loads .png files into OpenGL textures using Apple libraries that aren’t cross platform compatible.…
- default value of a sub range field produces No range Check error3
I tried with fpc 2.6.4 ----------------- program Project1; uses classes; type TSmall = 4..12; TA=class public N : TSmall; //default to 0 after create, should raise range…
- variable declarations with 'absolute' syntax8
Looking at the FPC Language Reference for Variable Declaration syntax: http://www.freepascal.org/docs-html/ref/refse21.html Specifically, ABSOLUTE declarations. The…
- undocumented 'library' hint directive6
Based on the latest FPC Language Reference documentation, there is no "library" hint directive (like Delphi & Kylix has)...…
- interface inheritance implementation11
Not sure what subject line to use to summarize what I'm trying to do here, but that is kind of related :) So I would like to use an interface that inherits from another…
- bug in Interface documentation?3
Speaking of Interfaces, there seems to be a bug (omission) in the Interface syntax diagram. http://www.freepascal.org/docs-html/ref/refse39.html The syntax diagram…
- STM32F407?3
I've seen on the list that the STM32F429 has some support in fpc now! A couple of years ago I got a STM32F407 discovery board. Is the code for *29 compatible with *07?…
- Distinguishing between ARM and ARMHF at build time1
I habitually use something like fpcV= 'Free Pascal v' + (*$I %FPCVERSION% *) ; fpcC= ' for ' + (*$I %FPCTARGETCPU% *) ; to generate "about box" text for programs, and…
- Access GPIO pins on RPi2 without root?21
How can one control the GPIO outputs on a Raspberry Pi2 without needing the program to run as root? I am using Raspbian Wheezy and I need to add two relays controls to…
- How to duplicate PHP's gzcompress() function in FPC?6
I need to compress a file the same way as PHP's gzcompress() function: http://php.net/manual/en/function.gzcompress.php DEFLATE, because PHP also has a gzencode() and…
- PostgreSQL notifications broken6
PostgreSQL has a useful feature where application programs can send notifications to each other, this tends to be much "cheaper" than periodically polling a table for…
- Lazarus Release 1.4.42
The Lazarus team is glad to announce the release of Lazarus 1.4.4. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.2. Here is the list of…
- for loop variable value reliable after loop?10
var i , n : integer; for i := 1 to 100 do begin if IntArray[i] > 100 then begin n := i; break; end; end; writeln('The '+IntToStr(i)+' item in the array > 100'); //can…
- Methods for autoupdating fpc programs?30
I am wondering if there is some method to autoupdate an fpc program running on a RaspberryPi? It really should not matter where the fpc program runs but I figured the…
- fpdoc - "all known implementing classes" section2
Does FPDoc have the functionality to show "All known implementing classes" for an Interface or Class? Something like what JavaDoc does. Here is an example:…
- How to compile Lazarus program using only FPC?35
I want to check my options regarding Lazarus and FPC. If I develop a program on Windows Lazarus, move it to Debian Lazarus (x86) and then finally want to compile on ARM…
- MSEide+MSEgui 4.0beta1 for FPC 3.02
MSEide+MSEgui 4.0beta1 for FPC 3.0 is ready for testing: http://mseide-msegui.sourceforge.net/pics/mseide_4_0.png…
- Screwed FPC installation in Xubuntu6
I was able to get my Xubuntu 15.10 into a state where FPC doesn't work even if I remove and install again from repo. I tried installing FPC 3RC1 but then removed all…
- howto find alternatives for deprecated fucntions?10
if the docs and the compiler say that a function is deprecated, how can I find out which other function should be used instead? Example:…
- FPC fails to build rev 318744
FPC revision 31874 is failing to build with the following error: pexpr.pas(3990,48) Error: Incompatible type for arg no. 1: Got "tnode", expected "tsym" Last Changed…
- TDBF (dBase) vs TurboPower FlashFiler4
I'm again revisiting the idea of porting FlashFiler to FPC, but trying to justify if it is worth it or not. The NexusDB owner offered me (at one stage) a possible…
- FileIO in FPC 3.09
In the discussion about resourcestrings I read that the RTL now uses codepage-aware strings for FileIO. So I wonder what kind of codepages do you use for FileIO? The…
- detect implementation / interface sections2
I tried sending this message two days ago, but it seems not to have gone through. Trying again. I like using include files, to break up big units into multiple files,…
- JSONRTTI load and save TDateTime issues5
I'm using the JSONRTTI unit to successfully save an object to a .json file. But when loading that file back using TJSONDeStreamer I get a conversion error due to the…
- Unit crt17
What does SetRawMode do? var OldIO : termio.TermIos; inputRaw, outputRaw: boolean; procedure saveRawSettings(const tio: termio.termios); Begin with tio do begin inputRaw…
- Resourcestrings in FPC 3.021
I did not find resourcestrings mentioned here: http://wiki.freepascal.org/User_Changes_3.0 http://wiki.freepascal.org/FPC_Unicode_support There encoding is not mentioned…
- Example of using TInetSocket, please2
I am porting an application from Windows Delphi 2007 to FPC on Linux (Raspberry Pi2). In the process I need to switch from using RS232 to TCP/IP to communicate with a…
- H2Pas sugestion: new -V param1
Some days ago, I did a conversion from a C header to Pascal, and I noticed that H2Pas tool could implement a little bit improvement for Variadic[1] (or varargs)…
- dereferenced pointer as open array argument1
Imagine I have this function: procedure ArrayTest(const data : array of char); begin ... end; and in another routine I have a pchar variable. If I slice the array byte…
