fpc-pascal · 2017-01
- Size of program vs library ?40
Hello. Here size of "nude" program and library compiled with fpc 2.7.1. Why is it a so big size-difference ? Compiled with => fpc 2.7.1 => linux 64 Compiler parameters :…
- Something like TProcess.Environment for libraries ?7
Hello. If you are using a TProcess and your executable depends on libraries, there is TProcess.Environment to define the library path, example: AProcess.Environment.Text…
- FPC 3.0.X next to 2.6.4 on Linux9
I have installed FPC 2.6.4 for a long time on my Linux with install.sh script in /usr dirs. I would like to install FPC 3.0.0 but keep 2.6.4 as "default" version due to…
- Any use notes for javapp2
So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool? - Jon Jon Foster JF Possibilities, Inc.
- fpc and voip ?20
Hello. I have lot of success to play mp3 files with library mpg123+portaudio and fpc unit fphttpclient.pas. Andrew Haines did a perfect work with his TThreadHttpGetter…
- destructor3
fpc allows to declare a method with the destructor keyword, that is not a real destructor, because it does not free the memory. For what is this feature good for? For…
- Pipe vs Memory buffer.24
Hello In a C method: OP_WARN_UNUSED_RESULT OggOpusFile *op_test_memory(const unsigned char size_t _size,int *_error); translated in Pascal with this: var op_test_memory:…
- Pointer hashing6
I’m trying to hash a pointer value and found some example of hash function but not sure about translations and the process in general. 1) Should I cast “pointer”…
- DBLib was updated, rev 35345, where I can found the new dblib.dll?4
I'm using FPC 3.0.1. I've updated my sources and saw that dblib was updated, specifically in revision 35345. My doubts are: 1. I need to update my dblib.dll too? 2. If…
- ppcjvm issues34
I've been working on building an app for Android using the FPC's JVM target. I'm using fpc 3.0.0. I've run into a couple of things that I'm not sure if they're bugs or I…
- Operator overloading with Text labels or words3
It's not possible to define an operator like: Operator AbcXyz(r : real; z1 : complex) z : complex; begin end; Is it? Has to be a symbol? If one could use words or text…
- TProcess vs RunProcess()23
Whats the differences or pros and cons between using TProcess vs RunProcess(). Graeme fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal…
- Feature announcement: Interface RTTI4
Hello together! I'm pleased to finally announce the addition of Interface RTTI to Free Pascal. Interface RTTI essentially provides a list of all methods available in an…
- JSON parser error due to my data values.6
I have the following snippet in a JSON file. ================ "Settings": { "SQLDir": "d:\data" } ================ When I load the complete JSON file using FPC's…
- Connect to 'https://...' url with fphttpclient ?18
Hello. Is it possible to connect with 'https:// files with fphttpclient ? For example, I can access this: http://broadcast.infomaniak.net:80/alouette-high.mp3 but not …
- Deleting 'Nonexistent' files under windows5
Is it possible to access files that have path lengths too long to access from explorer through Windows API from Pascal? I keep ending up with these very long file names…
- Stack trace different for Windows and Linux2
I'm a new poster to the mail list. I have a problem logging call stack trace info following an exception. The following simple program generates a divide by zero error.…
- fpc for ARM on STM32F1034
I'd like to know if the floating point hardware on STM32F103 is supported by the fpc cross compiler. ARmv7 this is according to: http://j-software.dk/stm32f103.php Will…
- Language constructs and types that dependent upon system unit6
Hello! I would like to write some code that will be static linked with C application. In addition, I would like to avoid linking system and rtl units and would use only…
- FPC run (run program after compile)12
Is there a way to compile a program with fpc at the command line and run it right after? Something like fpc run project1.pas -Fu../ The only thing I could find was…
- Array as result in function.22
Hello. With this code, the result of the function does not have same format as the array input: Why ? type TArFloat = array of cfloat; function array_in_out(arrayin:…
- 5
- How to remove EXIF data from a JPG file?0
What is the best FPC library able to remove EXIF data from a JPG file? I would prefer to avoid the usage of external tools like ExifTool. Thank you in advance for your…
- Changes to fpWeb...6
I have committed a serious change to the way fpweb handles requests. Especially routing of requests was changed. The old Delphi style routing worked with Datamodules…
- Does the system unit allow file locking/sharing?2
The oldschool way of opening files using the system unit (no sysutils) has the filemode variable.. system.FileMode := fmOpenRead; ... Assign(... Rewrite(... Can this be…
- PascalScript broken by FPC 3.0 ?6
The pascalscripts that worked fine with lazarus 1.4 and fpc 2.64 are crashing when I try to run them in apps compiled with laz 1.6.2 or trunk. I get a SIGSEG attempting…
- How to tell if file is locked, i.e. FileOpen in sysutils0
The fileopen function returns -1 on error, but there is no way to tell if the error is because of a lock, or another issue opening the file? I'm interested in finding…
- Free Vision etc. form editor2
I've just come across http://forum.lazarus.freepascal.org/index.php?topic=18998.0 which was asking about a dialog(ue) editor for Turbo/Free Vision. The links it cites…
- alignment of types ( __alignof__ in fpc)0
Porting some C-headers. Ran, into a declaration: #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *)) _alignof_ seems to be a compiler attribute…
- Dynamic arrays in LLDB0
I am trying to debug an FPC program that uses dynamic arrays. (Don't them all?) It seems to me as if LLDB can not handle them. I get this error: A1 is a dynamic array of…
- Re: bitwise operations using AND, OR, XOR, NOT0
In the meantime I read some articles about the history of FPC and TP and Delphi and learned that these extensions had been made very early in this history. While I…
- javapp0
In figuring out Android programming with FPC I've read about the "javapp" tool. However when I try to do anything with it spends some time doing nothing and then outputs…
- FPC 3.0.0 seed compiler for Rasperry Pi ARM?21
I have a script for building FPC and Lazarus from scratch on Raspberry Pi. This script starts by downloading the seed compiler from this location:…
- JSON stream load/save recursive structure0
Can fpjson handle load AND save of the following structure from/to json: PTreeStructure = ^TTreeStructure; TTreeStructure = class name: string; value: Integer; items:…
- TProcess failed running Swift compiler2
I'm writing a simple editor for Swift language. I use TProcess to run the Swift REPL. Unfortunately, TProcess failed to execute the Swift REPL for no obvious reasons.…
- C# translatation14
I’m going to attempt to translate a perlin noise function (from https://gist.github.com/Flafla2/f0260a861be0ebdeef76) but there are a few things that stopped me from…
- Untyped var params21
I’ve seen functions that use the untyped params like: function GetSomething (var something): boolean; This seems like something useful I would like to use but how can…
- FPC clean room project30
There's someone accusing that Free Pascal (and some parts of Lazarus) is just a reverse engineering of Delphi. Even he said some codes of FPC/Laz are taken from Delphi…
- Repeat result in random1
Here is a short program to print 10 random numbers: program testrandom; var i: Integer; begin Randomize; for i := 1 to 10 do WriteLn(Random); end. If I compile and run…
- questions on fpimage2
firstly a happy new year to you all and keep on rocking! While reading the fpimage unit code I found some pieces I don't understand and could not clear up reading the…
- How to translate C macro1
Could someone suggest how to translate the following code to pascal? #define prev(X) ( *( (void **) ( ((void *) (X)) - 32 ) ) ) ..... prev(ptr) = prev(last); I tried…
- Readln a password14
I wonder what the recommended way is to readln a password from console, as a standard Readln echoes the password. 1. SetConsoleMode seems to be Windows-specific 2. On…
- Question on type helpers10
Why is it that type helpers must be declared in the Interface section of a unit and cannot be private in Implementation section? Consider this (useless) example: unit…
- FastHtmlParser does not fire OnFoundText on e.g. empty table cell6
If you parse HTML using FastHtmlParser in order to extract a HTML table content, then, if a table contains an empty cell (<td></td>), the OnFoundText event is not fired.…
- How to split file of whitespace separated numbers?24
Is there a quick way to split a string of whitespace separated values into the separate members? I have to create a function to process a number of big data files where…
