Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2018-10

  1. INSTALL_PREFIX, INSTALL_LIBDIR

    How to control where 'make install' puts the libraries (e.g. libpas2js.so)? I tried "INSTALL_LIBDIR=~/tmp/lib64", but that moves everything *except* libraries to…

    Mattias Gaertner, christo, Christo Crause
    3
  2. pas2jni issues

    I would like to make a suggestion regarding the generated code of the pas2jni utility, and report an issue. This utility generates a java file called system.java. First…

    Unknown author, Yuriy Sydorov
    4
  3. Listing the type (even as string) of the parameters and the return of a function

    Hi. First, thanks for the great work in the invoke.inc for win64! ☺ So, consider the following example: uses RTTI; type TFoo = class public function Bar(const A:…

    silvioprog, Sven Barth
    5
  4. fphttpclient.post

    I'm using fphttpclient.simpleget to make querries to webserver. It's very very simple to use this function ! "Du pur bonheur". As some data which travel the world…

    Ched, Michael Van Canneyt, Sven Barth
    4
  5. Compiling 32 bit software on Debian Linux 64 bit

    How is it possible to compile a 32 bit program on a 64 bit Debian Linux? When I select i386 as the target cpu the message 'ppc 386 can't be executed' appears. Is it…

    Rainer Stratmann, Luca Olivetti
    2
  6. odd compiling + linking error (with invalid casting of Exp)

    I'm using 3.0.4 (win32), could any one try it on a later version of the compiler? The code i'm compiling looks like this: -------------- {$mode delphi} type Ttest =…

    Dmitry Boyarintsev, Bart
    1
  7. How to codesign my FPC program

    When my users run my FPC compiled 64 bit program, sometimes, they are warned that my exe was not published or known. I am thinking, if I purchase a code signing…

    Dennis
    0
  8. Reduce gap between .text section and .data section in ELF

    When I am compiling to ELF64, the linker is located the .text section at the address 4MB and the .data at address 6MB. Is there any way to reduce this 2MB gap between…

    Matias Vara
    0
  9. Case statements without constants?

    I tried today to make a case that used variables instead of constants and was surprised to get an error. I’m sure this been true since the 80’s but why don’t cases…

    Ryan Joseph, Marco van de Voort, Martin
    6
  10. Vote for Source Forge project of the month

    FPC is again a candidate for the project of the month at Source Forge. In case somebody wants to support FPC in this voting, here is the link:…

    Florian Klämpfl
    0
  11. instance memory usage

    from testing a while ago I remember the following: The memory used by a class instance is composed of 1. the size ".instanceSize()" gives back 2. the memory used by…

    Marc Santhoff, Sven Barth
    2
  12. Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

    I want to build FPC/Lazarus (3.0.4/1.8.4) from sources on a new Linux (Ubuntu 18.04 TLS MATE) using an i386 family CPU. AFAIK I need to have the fpc seed compiler in…

    Bo Berglund, Jonas Maebe, Marcos Douglas B. Santos
    10
  13. Default properties first draft

    I finally finished what I think is first draft of default properties. Since it already took me so much time to just get the basics of the compiler figured out I thought…

    Ryan Joseph, Ben Grasset
    3
  14. Cannot use SQLite 64 bit dll

    Using Lazarus and FPC and sqlite3conn unit, I can use the sqlite3.dll on windows without problem. However, when I try to convert my project to win 64, it just fail…

    Dennis, Michael Van Canneyt, Sven Barth
    3
  15. Indexing into records using [] property

    I’d like to know if there is a solution to the problem of indexing into records using [] properties. In the example below I have an array of records (a dynamic array…

    Ryan Joseph, Ben Grasset
    1
  16. Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?

    I have been using Intel i3 Dual Core CPU @3.4 GHz for a few years. If I upgrade my computer and CPU to Intel Core i5 6-core @3.6GHz, will the speed of FPC compilation…

    Dennis, Christo, Christo Crause
    15
  17. Add assembler source file to fpmake package?

    I'm trying to build a fpmake project for the RTL.  One problem I'm struggling with is how to add an assembler file to the package and assign a custom command to be…

    christo, Sven Barth
    4
  18. TJSCanvasRenderingContext2D's ellipse method is missing

    I'm now using pas2js v1.0.2 but I can't find `ellipse` method in TJSCanvasRenderingContext2D class. Is there a way to draw ellipse on a canvas using this version of…

    Mr Bee
    1
  19. Parse strings like "day-1" to convert in a time stamp

    Do you know any Pascal lib to parse strings to convert in date/time values? The user is supposed to type human-friendly values like: - "day" => trunc(now) - "day-2"…

    Marcos Douglas B. Santos, Michael Van Canneyt, Sven Barth
    5
  20. How to append data to a file of byte?

    It seems like I cannot use Append() on a file of byte. Neither is it allowed to use SeekEOF() on that file type... I want to log binary data to a logfile and therefore I…

    Bo Berglund, Michael Van Canneyt
    2
  21. GLPT v0.1.1 released

    I just released the first complete version of GLPT. Thanks to Ryan Joseph GLPT now supports Linux, MacOSX and Windows. Anyone interested in the project is invited to…

    Darius Blaszyk, Anthony Walter, dhkblaszyk
    18
  22. Re: any free pascal standard function to compare a, string against an array of string?

    You mean something faster than a for-loop? Like a hash table? I don't know of any hash table in the standard library but there are some in the class library:…

    Ingemar Ragnemalm
    0
  23. any free pascal standard function to compare a string against an array of string?

    is there a function like   if    IsOneOf('subtext', ['abc','cde','fecg','hig'])   then begin ... end; is there such a function IsOneOf(TheSubString : String; const…

    Dennis, David Copeland, Michael Van Canneyt
    3
  24. Option in Makefile to clean installed compiled units

    when building FPC from sources, I couldn't find a command to cleanup unit binaries copied to common .\units\ dir by "install" command. Without this step build process…

    Fr0sT, Sven Barth
    2
  25. MacOSX Mojave

    Possibly unwisely, I updated by Mac to Mojave. I found that things (including 32 bit apps) worked, but: I had to add -Fl/Applications/Xcode.app/Con…

    C Western, Jonas Maebe, Michael Ring
    7
  26. mips cross compiler libraries (and crti.o) problem

    I built an fpc-3.0.4 mips cross compiler on kubuntu 18.04 using the prepackaged mips binutils with make all BINUTILSPREFIX=mips-linux-gnu- CPU_TARGET=mips OS_TARGET=linux

    Luca Olivetti
    1
  27. Using REST based Services

    being rather agnostic regarding web techniques I have to ask: What module or unit is best for being used when calling web services? I want to try using Apache Tika…

    Marc Santhoff, Alexander Grotewohl, Michael Van Canneyt
    4
  28. FpWaitPid() multiplies status by 256

    Hello, all Can anybody suggest why the function function FpWaitPid ( pid: TPid; var Status: cint; Options: cint ): TPid; may return the status…

    Anton Shepelev, Marco van de Voort
    2
  29. Order of Precedence: FPC/Delphi vs Java

    I have this simple little test. My expected answer for all the calculations are 0 (zero), but both FPC and Delphi give different results. Java is the only one that seems…

    Unknown author, Anton Shepelev, Bernd Oppolzer
    16
  30. with in classes/records

    I’m sorry to bring this one up again but it was touched upon in regards to management operators and auto free objects. Please bear with me while I recap. To summarize…

    Ryan Joseph, Benito van der Zander, Maciej Izak
    43