Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2018-02

  1. Is this the correct way to configure fpc for multiple arm-embedded subarchs?

    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…

    Michael Ring, Christo, Christo Crause
    15
  2. HTTPRoute.pas and TRouteObject

    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…

    Kevin Jesshope, Marcos Douglas B. Santos, Michael Van Canneyt
    3
  3. Generating RTL Units for STM32 Processors

    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…

    R0b0t1, Christo Crause, Marc Santhoff
    13
  4. Linux getifaddrs

    Has anyone translated* getifaddrs* function to Free Pascal ? http://man7.org/linux/man-pages/man3/getifaddrs.3.html Thanks Brian Sent from:…

    Brian, Mark Morgan Lloyd, Michael Van Canneyt
    5
  5. GetLocaleInfo returns ZZZ

    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.…

    Darius Blaszyk, Bart, Henry Vermaak
    6
  6. fphttclient, no way to specify a connect timeout

    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…

    Luca Olivetti, Dimitrios Chr. Ioannidis, Michael Van Canneyt
    12
  7. fpreport rangeerrors with TFPReportColor

    when i compile in Lazarus the Reportdesigner with activated RangeCheck it gives a lot of runtimeerror with rangeerrors. The definition is TFPReportColor  = type UInt32;…

    Andreas Frieß, Graeme Geldenhuys, Mattias Gaertner
    8
  8. C header to Pascal , what is the type of ENUM?

    In C ENUM_BEGIN( RetCode )     /*      0 */  ENUM_DEFINE( TA_SUCCESS, Success ), /* No error */     /*      1 */  ENUM_DEFINE( TA_LIB_NOT_INITIALIZE,…

    Dennis, Martok
    1
  9. fcl-web - html web modules

    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?

    African Wild Dog, Michael Van Canneyt
    2
  10. Better way to convert short string to pchar?

    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…

    Ryan Joseph, Marco van de Voort
    2
  11. FCL-WEB HELP

    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…

    African Wild Dog
    0
  12. uses in 'filename'

    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…

    Mattias Gaertner, Michael Van Canneyt, Unknown author
    7
  13. Replacing parts of a string with TRegexpr

    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…

    luciano de souza
    1
  14. Scoped enums and inferred types

    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…

    Ryan Joseph, Benito van der Zander, Bernd Oppolzer
    27
  15. Advanced note: local variable "i" is assigned but never used?

      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…

    Vojtěch Čihák, Juha Manninen
    2
  16. glGetString crash

    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…

    Ryan Joseph, Jonas Maebe
    6
  17. Cannot reference macro identifier in assembler code

    The following code doesn't compile for the AVR target (FPC 38288): program macrotest; begin   asm   {$ifdef FPC_SRAMSIZE}     sts FPC_SRAMSIZE , r31  //…

    Christo
    0
  18. Python interaction... how?

    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…

    Darius Blaszyk, leledumbo, Michael Van Canneyt
    4
  19. Connecting to a database from a commandline pascal program

    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…

    Terry A. Haimann, DaWorm, Mark Morgan Lloyd
    2
  20. TMS Web core released - based on pas2js.

    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 :)…

    Michael Van Canneyt, code dz
    2
  21. Trying to compile ZeosDBO cli program

    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…

    Terry A. Haimann, leledumbo, stdreamer
    6
  22. Linux udev messages

    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…

    Mark Morgan Lloyd, Henry Vermaak
    1
  23. Operator overload resolution with arrays

    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…

    Martok, denisgolovan, Maciej Izak
    12
  24. Is there a smart way to save/restore NotifyEvents and objects?

    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…

    Dennis, Dennis Poon, Michael Van Canneyt
    6
  25. question about _fpc_local_unwind

    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…

    Matias Vara, Jonas Maebe, Sven Barth
    6
  26. libc and math.h on Linux

    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…

    Adriaan van Os, Karoly Balogh (Charlie/SGR, Marco van de Voort
    5
  27. Problem with file descriptors when doing fork on linux

    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…

    Ko Paka, Luca Olivetti, Michael Van Canneyt
    2