fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Linker switch1
A while ago (5 years) I made an application where I had to add -k-lxxxx to the command-line the compile that application. Is there a way to add this in the source ? I…
- [OT] inline procedures in TP 7.03
Hello, all I don't know a better place to ask this, and beg your pardon for an off-topic post. The Language Guide for Turbo Pascal 7.0 has this to say about `inline'…
- Last fix for RegExpr (error on empty input)4
1) typo in new Id: iMput. 2) wrong fix for 2nd "Error" call in Substitute(): you disabled Error call but didn't disable Exit, you need to skip Exit there too, so…
- FreeVision Resources?8
I've recently started getting reacquainted with Pascal. I learned a bit of it back in the late '80s in college on a VAX 11/750 running DEC VMS. I've loved PascalCase…
- 11
- ncurses 60
The ncurses and oCRT example programs appear to have an issue with ncurses 6. Attempting to compile them gets an undefined reference to symbol 'keypad' error. Adding…
- OpenCV6
I looked around on the web for OpenCV Pascal bindings. What I found, seems to be based (mostly) on the OpenCV C interfaces, which covers only part of OpenCV.…
- Free Vision PPXPictureValidator - Runtime Error 2160
With a Free Vision validator such as: Field^.SetValidator(New(PPXPictureValidator, Init('&&&-####', True))); I'm getting a runtime error 216 when attempting to validate…
- Freepascal/Lazarus forum and Lazarus website outage wrap-up0
Now that everything seems to be normal, time for a wrap-up, what happened: There were happening 2 things simultaneously - an increased interest(?) from china - one or…
- Array of const: docs1
https://www.freepascal.org/docs-html/ref/refsu69.html Remark: Note that there is no support for QWord arguments in array of const. This is for Delphi compatibility, and…
- $modeswitch from command line8
Is there a way to enable a mode switches from fpc command line? Thank you. ~Bee
- test plz ignore0
test plz ignore
- Compatibility problems with fpc > 3.3.1 rev 4237526
Hello everybody and specially Sven Barth. With last trunk of fpc, msegui is no more compatible with fpc. After big fight, it appears that commit of Sven Barth on Jul 13…
- Compiler treatment of dotted reference in class property2
FPC 3.0.4 compiles this code excerpt without a murmur: == code == {$mode objfpc}{$H+} type TSheetInfo = record name: String; tab: String; title:…
- Is forum down?1
https://forum.lazarus.freepascal.org/ takes long time to load or sometime timeout. Does it happens to anyone? Zamrony P. Juhara Fano Framework, pascal web framework,…
- Interface type error6
Why doesn't this compile? IClassName2 descends from IClassName1 so shouldn't TClassName be compatible with IClassName1? ======================================== {$mode…
- Custom operator2
Besides overloading available operators, could we make our own custom operator(s) in FPC? For example, I want to use ∑ to sum array values? Also other Unicode…
- Parameter Checking in fpjsonrpc4
is it correct, that TJSONRPCHandler only checks for parameter beeing object or array (according to TJSONRPCHandler.Options) or should it also check for individual…
- Best start point for adding new FPC target10
Hi all! I'm studying how to add a new target for the Freepascal compiler. The target is the missing armhf-FreeBSD. So I have looked at FPC guide (…
- IDLE_PRIO with FPC-compiled processes0
Hi all Have anybody experienced exceptions "Failed to create new thread" when FPC-compiled process priority changed with schedtool -D [pid]? Denis Golovan
- TProcess and zombie processes in *nix systems3
In fgGUI applications I often launch other applications. eg: The help viewer etc. In such cases, I simply want to launch the application and then forget about it. I have…
- Delphi generics bug?4
Is this a bug or intended behavior? I would think there should a type mismatch. {$mode delphi} program test; type TFooA = class end; type TFooB = class end; type…
- TIniFile.WriteString gives file with BOM, bad8
ini_lexmap:= TIniFile.Create(fn_lexmap_final); try ini_lexmap.WriteString('ref', IntToStr(i_sub), s_lexer);…
- "Hello world" syscalls7
I found this article: https://drewdevault.com/2020/01/04/Slow.html but FPC is missing, so I wrote simple: program Project1; begin writeln('Hello world!');…
- -WP compiler macro?1
Is there a compiler macro which is set to the value of -WP? It would be useful to know which SDK I'm targeted while compiling so I can omit certain code at compile time.…
- Is TryStrToDate works wrong?3
var DT:TDateTime; begin Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. Gabor
- Calling function pointer to main program8
I need to override the main program function and then call back the main program later. I know I can use -XM to set another function name besides "main" but then how do…
- fcl-report demos not working on windows10/64 with win64 compiled - Font Arial not found6
I have now built the fcl-fpreport demos on win64 on a Windows10/64 machine. But the demo is not running (comandline with -d jsondata -f pdf), because the font Arial is…
- Error format changes between compilers1
Notice how the format of the error changes between ppcrossx64 (built for iPhone simulator) and ppcx64. Is this a bug? It broke my regex for capturing errors and that's…
- fcl-report - Aggregates are initialized on every page - duplicat exception in expressionparser0
i have found out, if i make a report with more than one page and with aggregate variables, this variables are initialized more than once in procedure…
