fpc-pascal · 2017-10
- Resource compilation47
the $R directive accepts resource scripts (RC) and compiles the RES file from it on demand. However, that only happens if the RES file does not exist - if it does, the…
- Is there any pascal interface to TensorFlow or other neural network tools?8
or even neural network libraries written in Pascal? I know there are many python interfaces/libraries but I hope to use Pascal entirely so that I don't have to run a…
- FPC attributes / annotations support22
Bringing a discussion from the Lazarus mailing list to here. Is there a timeline when FPC might support attributes/annotations in trunk? Graeme
- 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…
- 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…
- Plans to support various ISO modes2
I hope this question is not part of the FAQ list. What are the plans for FPC as to the support of the various ISO modes of Pascal? At the moment, there is a switch to…
- State of Extended RTTI2
I am just wondering where eRTTI is at for Free Pascal. I have found this 5 year old thread (http://fpc-devel.freepascal.narkive.com/4OnA5HH5/state-of-extended-rtti), so…
- FPC (trunk) on Linux/ppc64le3
I wonder if anybody has a compiled binary that she or he could share? I need to run FPC natively on an IBM ppc64 LE Linux platform. Tobias
- FPC license file location3
I looked in the fcl at some units and there license information. The unit header comment mentioned that I should consult the COPYING.FPC file. The "packages" (fcl)…
- Printing types in generics3
How should you print types in generics for debugging? here’s an example of how I’m doing it now but it’s hacky (forced type casting pointers) and tkSString crashes…
- CRT unit and Windows' terminal12
I want to create console app that's using box drawing characters from unicode. Before CRT unit is used, it's all fine and my program could draw table beautifully. But…
- Initializing constant (translate from C)2
Here's an interesting one. In C I have this code: #define ID1 MAKE_ID('A', 'B') Where MAKE_ID is a macro that depending on the endianness of the target will create…
- JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)9
I'm developing an app were the client is written in Javascript + HTML and the backend in pascal (fpc) I'd like to use my pascal knowledge of RTL functions, mostly utils…
- Lua language in /packages/lua will be update?2
I would like to know if the translation of Lua to FPC, which I found in /packages/lua, is an official translation or just a lib made by someone else, which was included…
- Google Drive API4
I would like to know if FPC implements the full Google Drive API. If so, since which version? First, I need to implement upload, download and search of files [1]. Any…
- Getting reason for failure with SendToRaw()0
I'm using SendToRaw() from a console application to send an email back to myself with attachments to aid in technical support. It always works find when I send the mail…
- AbstractError in 3.1.18
I just built the ppcx64 trunk version 3.1.1 so I could try the memory management operator overloads we talked about but I’m getting a compiler error in my project that…
- compiler option for $J directive17
Is there any FPC command line option for writable constanst directive {$J} or {$WRITEABLECONST} ? Since I knew this directive, I always set it to {$J-} (because {$J+}…
- Const params question18
If you declare a parameter as const does that effectively behave like passing by reference? I have some performance sensitive functions that take records as arguments…
- no fpc.exe file after installation11
i installed “fpc-3.0.2.i386-win32.cross.x86_64-win64” on my laptop with windows 7, but there seem to be no fpc.exe file, so i can´t compile. In which folder should…
- alternative name fpc cross17
when I create the cross compiler to arm-android and arm-embedded I get the same compiler name so unable to have both running in the same system. any workaround? Regards…
- getting cross with the cross compiler21
I am having trouble getting fpc to cross-compiler for win64 target. I'm using fedora 26 which supplies 3.0.2 I used instructions here to create the cross compiler using…
- TBufDataset vs TClientDataset6
I read a couple of archived mailing list posts about TBufDataset, which from what I read is FPC's equivalent to TClientDataset. That then begs the question... Why isn't…
- Managed properties idea17
Yesterday when I was thinking about that enumerators I had an idea for a language feature and something which I saw introduced in Objective-C some years ago. Retaining…
- Getting the subnet mask?0
Is there a way to get the subnet mask of an interface using the Ararat Synapse tools? I would like to make broadcast but some networks have a subnet mask of…
- Obtain file size?3
I am wondering how to get the file size reported by the OS for a particular file without opening it. I tried to search for ‘Free Pascal File Size’ and variations…
- Finding long file names3
I'm trying to use findfirst()/findnext to obtain a list of files. Here's my code: Searchfile:=Tap_Drive+Tap_Path+'\'+Tap_SubDirectory+'\*.TAP'; If FindFirst(Searchfile,…
- Connecting to a MySQL Server1
What library do I need to install on Raspian (Raspberry Pi) to allow Free Pascal to attach to a Mysql Server. Note the MySQL Server is running on a i5 and is actully …
- how to get a list of all thread id0
In my multi thread programs (I use multiple threads in my program and the windows dll that I used also used multiple threads), from time to time, there are some problems…
- For ..in GetEnumerator Allocation9
As I understand the for..in loop GetEnumerator method is expected to create a new object each time it’s called and FPC destroys it later when the loos is finished. Can…
- Yet another thread on Unicode Strings2
Unicode Character String handling is a question that keeps coming up on the Free Pascal Mailing lists and, empirically, it is hard to avoid the conclusion that there is…
- Help on using direct pascal compiler2
I want to use fpc.exe directly to convert pascal code to executable (* .exe) file. I do not know how to use it. When it comes to the fpc.exe file, it tells you to press…
