fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Proud to announce..1
Hello ! If anyone still doubted that Object Pascal is the best programming language, running on the most platforms: It is with considerable pride that I can announce a…
- Can't determine which overloaded function to call5
this code compiles for target Win32 but does not compile for Win64/x86-64. Why? Is there workaround? (Error: Can't determine which overloaded function to call) Thank you…
- Object questions3
Some questions about old-style objects. 1) How can you check if self is assigned? self refers to the struct itself but if the object was allocated on the stack then how…
- Generics question4
{ TFoo } generic TFoo<T> = class procedure Bar; end; { TFoo } procedure TFoo.Bar; procedure localproc; begin end; begin end; This will not compile (fpc 3.0.4):…
- How to get ANSI code command return value?2
I'm playing around with ANSI code (ESC sequence) on the console. Sending an escape command is trivial such as changing text's color and background. However, getting a…
- Building trunk29
I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I don't think I have changed…
- Default record const values18
Should’t this work? This would be a good way to set default record values but it doesn’t seem to be supported. type TMyRecord = record public a: integer; b: string;…
- Adding options when building packages1
Since upgrading to Mac OS 10.14 a file has moved in the system which needs to be linked to. I’m able to work around this by adding a search path to the compiler…
- TStringList.DelimitedText seems not to work...2
FPC 3.0.4 with Lazarus 1.8.0 on Windows 7 x64 I am trying to use TStringList containers for parsing out values of this kind for sending to a database handler script:…
- C-blocks9
Can c-blocks support Jonas added for Cocoa support be extended to other platforms or is this stuck with OS X? It uses a runtime library by Apple but is it possible to…
- Passing nested procs out?6
Is passing nested procs outside of the calling scope relying on undefined behavior? It doesn’t seem like this should be allowed. ===========================…
- Uniform initialization?14
Since I’ve got a little more free time I wanted to see if there was a simple solution to issue in Pascal that causes quite a bit of friction for me, i.e. constructor…
- Windows programming tutorials for FPC30
I've been programming for decades with Pascal, starting with Turbo Pascal, and for a few years now with Freepascal, and even wrote really complicated console windows…
- Running tests with FPC units only2
I am blind, so I don't use Lazarus. In pure Freepascal, I tried to run an example test: program tester; {$mode objfpc}{$H+} uses fpcunit, testregistry; type TMyTest =…
- 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…
- Restricted generic param types1
I’m getting a parse error here. It thinks the “U” is another type but in fact it’s another generic parameter and not related to this a bug? I don’t think the…
- Dynamic array bug9
I finally built the trunk today (version 3.3.1) to try new dynamic array features and a bug fix Sven did a while ago but I’m still getting errors. Did I get the wrong…
- Firebird vs. SQLite vs. PosgreSQL2
This isn't a Free Pascal question but I wanted to ask about the Firebird database [1] because it seems as the Free Pascal community uses it the most by far, so I hope it…
- 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…
- Building FPC from sources on Linux Mint 19, make clean errors out2
I have jsut createda virtual Linux Mint 19 x86_64 machine on which I attempted to install FPC 3.0.4 and Lazarus 1.8.5 (the fixes branch). I got as far as: - FPC 3.0.0…
- fpc.cfg using relative paths2
Is there, any change, to use relative paths inside fpc.cfg? I have several Lazarus copies, in different paths, and I would like to use the same fpc.cfg on all of them.…
- 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:…
- MSEide+MSEgui 4.6.20
MSEide+MSEgui version 4.6.2 has been released: https://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/4.6.2/ Have a lot of fun! Martin
- 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:…
