fpc-pascal
Subscribe to this list Your subscription
Latest threads
- 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…
- TJSONData.FindPath() troubles where data contains dots.4
I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html Now, I…
- class property accessor static17
The getter/setter of a class-property must be "static" (Delphi compatible). If I understand "static" correctly, then "static" simply omits passing the class as…
- fphttpserver and streaming ?0
Hello. Is it possible to do a web-streaming-server with fphttpserver ? If yes, are there examples ? If no, what are the steps to realize it? In a loop, a buffer of float…
- Parameterless constructors are not allowed in records or record/type helpers9
Why is this restriction in place and what are the alternatives if any? Some times I want to just provide a method that sets default values for a record without any…
- 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.
- IsValidIdent() and identifiers escaped with &5
Consider this program, which returns False: program Project1; uses sysutils; var &begin: boolean; begin &begin:=IsValidIdent('&begin'); WriteLn('IsValidIdent(''&begin'')…
- A jit tool for command line compilation of Pascal?2
Several years ago I seem to remember using a FPC tool that allowed me to write Pascal code and have its source file loaded, compiled and executed at the command line. If…
- for loop vs while loop7
Just curious (been in a discussion with somebody else). Is there a performance difference between a FOR loop and a WHILE loop? Not sure if it will make a difference, but…
- 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…
- How to use pipes ?9
Hello. I have done lot of search on internet about pipes without success. Even for Delphi. no demo nor explanation. The same in fpc wki page. For example, how to use…
- question about fphttpclient1
I use with great success (and pleasure!) the unit fphttpclient under winxp, mageia and raspbian with some code like WITH TFPHTTPCLIENT.CREATE(NIL) DO BEGIN REP:=GET(REQ);
- 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…
