fpc-pascal · 2015-06
- How to use a static method as procedure variable?4
Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton;…
- TDBF licensing12
Am I correct in understanding that TDBF included with FPC is a LGPL licensed component, the one that doesn't have the static linking exception. So I can't use it in any…
- Help building FPC on armhf9
I recently installed fpc-2.6.4 on my Wandboard-Quad for production. I have fpc from svn but I get an error when I try to build. Compiling ARM Free Pascal Compiler...…
- Is there some reason why the linker cannot find crti.o, crtn.o etc?1
These messages come up almost always when I compile a project: Warning: "crti.o" not found, this will probably cause a linking failure templateSys.lpr(39,1) Warning:…
- Exception when trying to set a COM object property through OleVariant1
I am using FPC 3.1.1. I am playing with SAPI5. It almost works, but I am unable to set a Voice of SPVoice object through OleVariant. The following program works fine in…
- fpchmod(thefile, S_IRWXU) not for freeBSD ?1
Hello. This to advice that fpchmod(thefile, S_IRWXU) is not working with freeBSD. This because some const are missing for FreeBSD in FPC's RTL. But, thanks to Graeme,…
- Multipe path in TProcess.Environment ?6
Hello. If a TProcess runs a executable who needs a library, that does the trick => TProcess.Environment.Text := 'LD_PRELOAD='/the/directory/of/thelibrary.so' ; You may…
- PDF indexing8
does fpc (or lazarus) have a helper class for indexing the content of PDF files? I want to create a searchable full text index. Marc Marc Santhoff
- SizeInt documentation5
The documenation in http://www.freepascal.org/docs-html/rtl/system/sizeint.html says: ----------------------- SizeInt Signed integer type which fits for sizes Declaration
- FPC linker oddity5
The following simple program which uses the $LINKLIB compiler directive builds fine under Linux: program Project1; {$Linklib c} Const P : PChar = 'This is fun !';…
- Object file requiring kernel32.dll functions1
The situation is as follows: - Platform: Windows - file1.obj: 3rd omf object file (no source available) that can be used by Delphi linker and calls kernel32.dll…
- FPC linking syntax error10
Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error:…
- loadlibrary() unsafe ?14
Hello. Here the thing: a open-source program, eSpeak (voice synthezer) uses 2 libraries: espeak-library and portaudio. In eSpeak source => - For the Windows version, the…
- For .. in .. loops with sets and valued enums8
Consider the following program: program Project1; type TMyEnum = ( c = 5 ); TMySet = set of TMyEnum; var Item: TMyEnum; begin for Item in TMySet do Writeln('Value = ',…
- FPC ARMEL and ARMHF under the same tree7
I currently have my [cross-]compilers under the same tree, to ease management and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two distinct targets,…
- How to get the permission f a file ?6
Hello. With fpchmod(), it is possible to change the permission of a file. Perfect. But how to check if a file has executable permission (and if not, change it with…
- fpGUI Features11
Does FpGUI supports custom drawing or custom styles of the controls? Regards
- SetPropValue: value as string does not work for Chars and Booleans3
Trying to set the value 'a' to a property Char and a 'True' to a Boolean property, I got some errors (logs in attached) in function 'TypInfo.SetPropValue'. But I did the…
- TDataset incompatible with Delphi 7 and later2
I've noticed the following incompatible (missing) TDataset properties, which have been available at least since Delphi 7 onwards (maybe even earlier). These are missing…
- Re: FPC roadmap?13
Thank for answers. Are some dates planned for 3.0 release ? Actually, we have some risks : 2.6 is frozen and not supported but 3.0 is not released yet. I took a little…
- [PATCH] Extends SetPropValue/GetPropValue making it compatible with new versions of Delphi0
Please see it in: http://bugs.freepascal.org/view.php?id=28278 Thank you! Silvio Clécio My public projects - github.com/silvioprog
- record helpers & how they effect records3
using a simple record, e.g. some_record_type = record a, b : longint; end; If I declare a record helper, does this change the record in any way? i.e. does the record…
- p2js - pascal to javascript compiler5
Take a look at this interesting product: http://p2js.gelicon.biz/en It's build upon FPC source and has GPL license. It looks interesting. Perhaps we can use this to…
- Tips & Tricks: AllocationPreference Registry Key0
I was only recently made aware that this registry key exists. I thought it might be useful to other developers developing for the Windows platform. This can help with…
- Writing a DLL to be use in a VBA code4
At work, I need to create a Excel sheet containing certain more complex functions. I tried to use only VBA, but I released I will more productive if I could use a DLL…
- valgrind: "invalid read"4
I have just started using valgrind, and I was surprised that I got a lot of errors, particularly in places that look like clean code. So I whittled things down and…
- Re: FPC roadmap?2
Thanks for info. Personally, I'm able to use fixes_3_0 branch, the problem is that solution is not easy to support even for small developers group and some build/tests…
