fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Searchable docs online5
Given the questions of late, I have created a search page for the docs: https://www.freepascal.org/docsearch/docsearch.html This will search in the manuals, and in the…
- How to find address of record member4
Say I have a record type defined like this: TAppData = packed record //Total 8 bytes per app ActiveToken: word; //Matches constant for app if active Option: word; …
- Benchmarks0
Has anyone benchmarked the new AMD Ryzen vs Intel chips with FreePascal. 10 years or so ago, I had a multi core AMD Desktop and an Intel based laptop. With…
- Embedding DLL into EXE for Windows 32 bit?5
Is it possible to embed a DLL into the EXE file such that only the exe needs to be distributed? I need to use a 3rd party protection dongle in my programs. The maker…
- Interrogating external devices using USB2
I have multiple amateur-radio transceivers which may be programmed with computer software through a USB cable connection. There already exists various software…
- Is this the correct way to configure fpc for multiple arm-embedded subarchs?15
I am looking for an easy way to have all cortex-m compilers available at the same time to be able to do automated building/testing Inspired by the -V parameter of fpc I…
- fpdoc error with XML parsing5
What is illegal about this fpdoc XML project file? fpdoc from FPC 3.1.1 keeps giving an exception error reading the XML document. The issue it has is with the XML…
- Re: TFPGObjectList error34
this seems to be misleading error message. TFPGObjectList works well for objects (classes). When I tried to push record to it, I got the same error message. TVec3…
- FPC_PCHAR_LENGTH dog slow5
I was just parsing something and found that a call to length on a pchar was taking 90+% of the time in FPC_PCHAR_LENGTH. Why is that so crazy slow? Does it need to…
- Split stream into words10
What's the easiest way to split a stream into words ? Words are just that: words, but - here is the caveat - they must support unicode. So Michael and Michaël are both…
- Daemon using TTimer on Windows10
I need to build a daemon app on Windows. It will need a timer to performe some tasks. This timer could be big among 15 min, 30 min, 2 hours, etc. I thought that I can…
- List of chars for case6
Is there a way to make a constant for a list of chars which I can use in a case statement? I’ve got a bunch of code duplication happening I’d like to clean up. const…
- TFPGObjectList error0
I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL? type TVec3List = specialize…
- How to list USB devices on Windows?4
I am writing a class that interfaces to a specific USB device HID type and I would like to list all such devices currently connected to the PC (usin Windows). On Linux I…
- Format specifier in FPC?2
I have the following format specifier in C : %+.05f. What would be the FPC equivalent? A float is printed like this: -0.70711 The specified '+' will explicitly print out…
- Lazarus and Linked Lists1
Is there a basic linked List object for Lazarus? Terry Haimann
- how to get rid of hints1
How to get rid of hint 6068? With fpc 3.1.1 using some units like fgl the compiler emits: .../fpc/rtl/objpas/fgl.pp(899,1) Hint: "inherited" not yet supported inside…
- macos make 3.1.1 fails3
Trying to compile fpc 3.1.1 i386 on Mac High Sierra 10.13.5: make CPU_TARGET=i386 PP=/usr/local/lib/fpc/3.0.4/ppc386 all The CPU_TARGET seems to be ignored:…
- Proper preprocessor?76
Are there any plans to make a proper preprocessor like #define in C? I’m not saying this is good programming practice or anything but I just had a really annoying copy…
- Compiling 3.1.1 trunk4
Hi, newbie to fpc (but not Pascal) here. I'm trying to compile the fpc trunk from svn on linux. I managed to find the buildfaq, but I'm running into problems. I've…
- Support for "class threadvar" sections inside class and record types9
Hello together! Announcing a small feature this time, but some might appreciate it: FPC now supports the declaration of threadvars inside class and record types. ===…
- Default record fields19
I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little…
- math with infinity and NaN23
I’ve been updating my old programs to use the MATH unit in freepascal and while testing things I came across a runtime error 217 Invalid floating point operation. …
- Equivalent of Delphi map files...10
Hello again :), I just forgot to ask; Delphi has an option to generate a so called "map file" that contains the function addresses matched with the function names when…
- Feature announcement: Dynamic array extensions93
Hello together! I'm pleased to announce that after nearly a year various extensions for dynamic arrays have been finished. This includes the following features: -…
- Multiple thread heaps8
If the default memory manager for FP creates a heap for each thread, what happens if an object is created in one thread and freed by another ? Also, do calls to New ()…
- Lazarus and Cocoa1
I’m trying to make a lazarus control which wraps an NSView but I haven’t used Lazarus before and I don’t really understand the architecture of the system. It looks…
- I am trying to install zeosdbo0
I am trying to install zeosdbo onto my Lazarus install and am getting the following error during the rebuild: Build IDE: Exit code 512, Errors: 1lazarus.pp(1,1) Fatal:…
- Realtime and freepascal???11
For a hard real-time project I am considering using freepascal. As this is my first endeavour in real-time I would like to ask the community on their experiences. Is FPC…
- AVX512 in ASM - From where should I start?3
In the case that I feel brave enough to code support for AVX512 on asm sections, from where should I start? This question is related to:…
