fpc-pascal · 2018-02
- Is this the correct way to configure fpc for multiple arm-embedded subarchs?15
I am looking for an easy way to have all cortex-m compilers available at the same time to be able to do automated building/testing Inspired by the -V parameter of fpc I…
- HTTPRoute.pas and TRouteObject3
Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so…
- Generating RTL Units for STM32 Processors13
I'd like some pointers on generating the RTL files for a processor I am interested in, the STM32L432KC (which is available for ~$15 with JTAG on a "Nucleo" board from…
- Linux getifaddrs5
Has anyone translated* getifaddrs* function to Free Pascal ? http://man7.org/linux/man-pages/man3/getifaddrs.3.html Thanks Brian Sent from:…
- GetLocaleInfo returns ZZZ6
On my machine getlocaleinfo returns ZZZ when requesting the abbrev langname. The country code is correctly set to NL. This makes gettext.GetLanguageIDs return zz_NL.…
- fphttclient, no way to specify a connect timeout12
the TFpHttpClient has an IoTimeout property, which in turn sets the IOTimeout of its FSocket (TInetSocket), however there's no way to set a connection timeout. I see…
- fpreport rangeerrors with TFPReportColor8
when i compile in Lazarus the Reportdesigner with activated RangeCheck it gives a lot of runtimeerror with rangeerrors. The definition is TFPReportColor = type UInt32;…
- C header to Pascal , what is the type of ENUM?1
In C ENUM_BEGIN( RetCode ) /* 0 */ ENUM_DEFINE( TA_SUCCESS, Success ), /* No error */ /* 1 */ ENUM_DEFINE( TA_LIB_NOT_INITIALIZE,…
- fcl-web - html web modules2
How to use action and sessions with HTML Web Modules? It seems fcl-web is an incomplete work. How can i help? Is there any list of incomplete implementations/to-do works?
- Better way to convert short string to pchar?2
I would like short strings so I can do concatenation easily but I need to pass pchar to a C function. Is there anyway to do this on the stack instead of allocating a…
- FCL-WEB HELP0
After trying unsuccessfully, I decided to ask for help. I have a webmodule with five actions. The five actions share the same page layout (including globals css and js…
- uses in 'filename'7
FPC allows to use two different units with the same name: uses foo in 'unit1.pas', bar in 'sub/unit1.pas'; Which might fail with linking errors. Is this a feature or a…
- Replacing parts of a string with TRegexpr1
I'd like to replace some part of a string acording to a pattern. I know how to search and print the matches of a ER: program test; {$mode objfpc}{$H+} uses regexpr; var…
- Scoped enums and inferred types27
I just learned FPC has scoped enums, which is nice, but they lack what you could call “relative inference” based on the type being passed. In the example below the…
- Advanced note: local variable "i" is assigned but never used?2
would it be possible to do more advanced checking of this note? This code var i: Integer; begin i:=5; end; gives Note: Local variable "i" is…
- glGetString crash6
I tried using a core OpenGL context on my old MacBook (2010) and got a crash from glGetString from the Pascal bindings (a legacy 2.x context doesn’t crash). I pulled…
- Cannot reference macro identifier in assembler code0
The following code doesn't compile for the AVR target (FPC 38288): program macrotest; begin asm {$ifdef FPC_SRAMSIZE} sts FPC_SRAMSIZE , r31 //…
- Python interaction... how?4
I just cannot wrap my head around this one. I would like to implement scripting support to a pure FPC application. The application implements some modifier on an…
- Connecting to a database from a commandline pascal program2
I am trying to write a command Line Pascal program to connect to a MySQL database using the ZeosDBO Library. I am sure I have done something stupid. I have it now so…
- TMS Web core released - based on pas2js.2
Yesterday, TMS Software has released a tech preview of their "TMS Web core" product for Delphi. Now that it's official, I don't need to be secretive about it anymore :)…
- Trying to compile ZeosDBO cli program6
First of all, thank you for looking at this, Terry H. To compile a cli FreePascal program to use ZeosDBO library, I assume all I have to do is include the path to those…
- Linux udev messages1
Has anybody used NETLINK_KOBJECT_UEVENT on linux to get messages relating to device hotplugging and removal? It seems like the sort of thing that could be monitored by a…
- Operator overload resolution with arrays12
I'm having some logical problems with fgl generic lists and operator overloads. This is essentially the same issue as discussed last year on the forum as…
- Is there a smart way to save/restore NotifyEvents and objects?6
I have list of objects which contains references to other objects. I need to save all these objects to harddisk to be restored on a latter day. I know how to stream the…
- question about _fpc_local_unwind6
in my rtl for torokernel, I have to implement "_fpc_local_unwind()" however I am not sure about the expected behavior of this function. It appers in the code when I use…
- libc and math.h on Linux5
I have to import the math.h libc functions listed here <http://pubs.opengroup.org/onlinepubs/009695399/toc.htm>. What is the recommended way to do this for general Linux…
- Problem with file descriptors when doing fork on linux2
I would like to ask advice. My colleague run into a problem, when he had used TProcess to spawn other process. Because of fork nature, file descriptors was copied into…
