fpc-pascal · 2018-10
- INSTALL_PREFIX, INSTALL_LIBDIR3
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…
- pas2jni issues4
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…
- Listing the type (even as string) of the parameters and the return of a function5
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:…
- fphttpclient.post4
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…
- Compiling 32 bit software on Debian Linux 64 bit2
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…
- odd compiling + linking error (with invalid casting of Exp)1
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 =…
- How to codesign my FPC program0
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…
- Reduce gap between .text section and .data section in ELF0
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…
- Case statements without constants?6
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…
- Vote for Source Forge project of the month0
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:…
- instance memory usage2
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…
- Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?10
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…
- Default properties first draft3
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…
- Cannot use SQLite 64 bit dll3
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…
- Indexing into records using [] property1
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…
- Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?15
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…
- Add assembler source file to fpmake package?4
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…
- TJSCanvasRenderingContext2D's ellipse method is missing1
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…
- Parse strings like "day-1" to convert in a time stamp5
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"…
- How to append data to a file of byte?2
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…
- GLPT v0.1.1 released18
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…
- Re: any free pascal standard function to compare a, string against an array of string?0
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:…
- any free pascal standard function to compare a string against an array of string?3
is there a function like if IsOneOf('subtext', ['abc','cde','fecg','hig']) then begin ... end; is there such a function IsOneOf(TheSubString : String; const…
- Option in Makefile to clean installed compiled units2
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…
- MacOSX Mojave7
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…
- mips cross compiler libraries (and crti.o) problem1
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
- Using REST based Services4
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…
- FpWaitPid() multiplies status by 2562
Hello, all Can anybody suggest why the function function FpWaitPid ( pid: TPid; var Status: cint; Options: cint ): TPid; may return the status…
- Order of Precedence: FPC/Delphi vs Java16
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…
- with in classes/records43
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…
