fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Minimum Linux version for FPC 3.0.2 (armhf)2
I wonder what the minimum Linux version is ... I have made NAS versions of my app, and it runs fine on an older Synology NAS with this uname info: Linux DS-212j 2.6.32.12
- FreePascal and MySQL ?2
This is probably a dumb question. But I have data in a tstringlist that I want to upload into a MediumText MySQL column. It looks to me as if you do something like:…
- Seek to EOF of file of byte4
How should one do this? https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html implies that it's only for text files, Seek(f, FileSize(f)) seems excessive.…
- fpc procedure modifier []12
Where can I find some information about the [] procedure modifier of FPC? For example: procedure fpc_check_object(_vmt : pointer); [public,alias:'FPC_CHECK_OBJECT']; …
- MINIX 3 support5
Does FPC support the MINIX 3 target platform? Or has somebody attempted to port FPC to that platform? Graeme fpGUI Toolkit - a cross-platform GUI toolkit using Free…
- Re: fpc-pascal Digest, Vol 161, Issue 180
What you are describing is also part of my activities. Most of the details have already been mentioned by Adrian and others. Only one more thing: The Fortran code will…
- AggPas / PTCGraph dynamic memory allocation4
I've been trying to figure out how to dynamically allocate memory to be used as a screen buffer to display AggPas generated images with PTCGraph. I don't want it…
- Database apps on Debian etc.3
Graeme started a short thread on databases in "The Other Place" a few days ago, but I thought this might be of sufficient general relevance to raise here. I had a system…
- installing cross fpc in parallel to systems fpc17
how does fpc and it's makefiles handle the case of installing a cross compiler on a system having fpc installed? The target path will differ and I can set that, but how…
- WinHTTP.h Translation2
Does Free Pascal has any header translations for WinHTTP.h <https://msdn.microsoft.com/en-us/library/windows/desktop/aa382925(v=vs.85).aspx> ? Ragards
- Object-oriented file (path) handling library1
is there something simliar to Java's java.io.File or java.nio.Path for FPC? Google makes me think there isn't... Flávio
- -O2 internal compiler errors2
When I turn on -O2 I get a never ending stream of internal error 2009112601 which I think is from various inlined operator overloads (didn’t do much testing though).…
- Memory Leak's in XMLRead unit5
Using ReadXMLFile function from XMLRead unit generates memory leaks when trying to read a invalid XML content. ==== CODE ==== program xml_leak_test; uses XMLRead; var…
- FPC Debug line numbers5
I've noticed that line numbers are sometimes off, sometimes quite a bit when I receive a run-time error. I had one today, it specified the correct function that was…
- FPC install on windows with limited rights9
I have a severely locked down laptop (work one) so I can't install anything that creates menu shortcuts, desktop icons or goes into "Program Files". So I can't run the…
- Float packing5
I’m trying to pass a value between 1-1000 to an GLSL shader program which only supports floats with a precision of 1 decimal place so the plan is to pack the value…
- fcl-passrc: in which line a TPasElement ends?4
a question to TPasElement of fcl-passrc: To get the line in which the element starts I use the public SourceLinenumber field. But how do I get the last line of this…
- using Interfaces in descendant classes 2.6.4 vs 3.x3
Some of my programs were last compiled with FPC 2.6.4, and there I used Corba-style Interfaces without a problem. I've now recompiled those projects with FPC 3.0.4 and…
- cpu_relax() in freepascal4
I want to implement the cpu_relax() function in order to use it inside loops. However before, I would like to know if the fpc compiler is doing an optimization of this…
- move problem2
I was just trying to run some old code and found that my calls to Move are crashing (3.1.1/ppcx64) so I tried to make this simple example and it’s crashing also. Also…
- Compiler directive to compile to 64 bits2
Hi, a newbie question but the docs aren't clear on how to say that I want to use the 64-bit compiler, not the i386. I'm on Windows, so I installed the native i386-win32…
- Forbidden access to the packages page1
Hello, is it normal that the following URL gives a 403 forbidden error when trying to access via Firefox? Here it does: https://www.freepascal.org/packages/ Greetings…
- fpsockets3
Do exists any way using the fpsockets family to know if a "fprecv" will block ? In other words do exists a call that return the amount of bytes that are ready to be…
- FPC vs. Lazarus regarding some units...8
Hello, beginer here: Some years ago, I tried to port an old Delphi program to FreePascal, and discovered I had to use the entire Lazarus and not FPC alone due to some…
- Problem with array of const4
Consider the application below. When I run it I do get the following output: name rg��������name�F&{00000000-0000-0000-C000-000000000046} In other…
- Overloaded functions3
I have a problem with overloaded functions. I defined these functions: function val_(name: string): string; function val_(name: string): boolean; function val_(name:…
- Callbacks as nested functions10
Is there anyway to get callbacks to work as nested functions? I get crashes when I try this and I assume it’s because the the compiler is replacing the first parameter…
- InitThread/DoneThread3
In the latest version of MacOS calls to InitThread starting crashing so I removed the InitThread/DoneThread pair and surprisingly nothing broke. I was instructed some…
- Generic<T> compiler error10
In Pascal we can do this: type TXStream = TStream; Now, TXStream is just an alias to TStream. How do the same with generic classes, using mode delphi? TBar<T> = TFoo<T>;…
- PAPI module for FreePascal0
Hi all Does anybody know any module/binding for PAPI? I mean some library for reading hardware performance counters under Linux. Something similar to…
