fpc-pascal
Subscribe to this list Your subscription
Latest threads
- minor glitch in phrasing of rarely seen compiler warning0
I recently wrote code that produced this Warning ... Warning: compiler switches aren't supported in \ styled comments Should this not read as follows? Warning: compiler…
- Re: ARM Linux crosscompiler: compiles but... executable gives segmentation fault10
I guess not, when I remember correctly this has already been repaired for armv6m. The problem for me is that .Lj9 is defined as a negative number. As a consequence r13…
- Linking C library1
I'm trying to link a C library to my pascal app. From the messages I understand that I forgot to link in some additional library. However I cannot find which one that…
- respawn a daemon in Linux18
Hi Linux Experts. Since years I am running an fpc program as a kind of daemon on a PC Linux server. I simply defined a "respawn" line in /etc/inittab and with any start…
- ARM Linux crosscompiler: compiles but... executable gives segmentation fault14
For the Dutch among us: de dag die je wist dat zou komen... Thanks to earlier help I got to build an ARM Linux cross compiler module in fpcup which even compiles fpcup…
- Profiling ARM targets2
What is the recommended way to profile FPC applications run on ARM targets in light of the error message: Fatal: Option "-pg" is not, or not yet, supported on the…
- Re: ARM Linux crosscompiler: compiles but... executable gives segmentation fault0
Might be related to the mla/mls optimization which somehow has been enabled even though it's still broken ----- Reply message ----- Fra: "Reinier Olislagers" Dato: man.,…
- invalid floating point0
Running win32 fpc 2.7.1 10/01/2014 Compiling with no -v options.I get An unhandled exception occurred at $0043C670:37 EInvalidOp: Invalid floating point operation…
- fpc build breaks since 263984
Hi Looks like since 26398 rev. fpc cannot be built. It fails with following when running "make all". classes.pp(56) Warning: Implicit uses of Variants unit Fatal: Can't…
- Documentation, syntax diagrams29
Today I found this type definition in some FreePascal sources: TypeReal =type Double; I wondered what the second “type” keyword means here (I have never seen this…
- Efficient millisecond timestamp11
What's the most efficient and portable way of getting a millisecond timestamp, relative to any ancient epoch? I find TimeStampToMSecs(DateTimeToTimeStamp(Now)) hard to…
- Compiled resource file search path5
Hi Could anybody give a hint on which fpc option to use to force compiler search .res files in some directory? I've added -vt switch and it shows that the only file name…
- Load .NET dll (or bootstrap CLR to be precise) from FPC9
I'm writing a web app hosting several tasks in FPC, however one of the task is calling a function residing in a .NET dll. I've made a flat C interface for the dll (so…
- UTF8 codepage for file in trunk: codepage constant names?9
First, thanks to all involved in documenting the existing FPC trunk Unicode situation on the wiki. Exactly the kind of docs I was looking for! I'm trying to avoid…
- Ansi version of string functions1
I would like to know what is the difference between AnsiStrscan and strscan, or, generically, the Ansi* functions versus non-ansi versions? Thanks a lot. Xiangrong
- Is it just me or... trunk cross compile failure on arm-linux8
Working on my arm-linux cross compiler (which used to at least build a compiler etc), I currently hit this with fpc trunk:…
- gtree - Freeing a nil Root without error5
gtree.TTree type has the following code: constructor TTree.Create; begin FRoot := nil; end; destructor TTree.Destroy; begin FRoot.Free; end; How is possible then that…
- Trunk Win64 compilation problems: objects.ppu - commit 26398?2
Hitting compilation problems on trunk with fpcup. cp.exe: C:/development/fpctrunk/rtl/units/x86_64-win64/objects.ppu: No such file or directory make.exe[4]: ***…
- Checking assignment compatibility6
Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; begin Assert(TypeOf(qt) = TypeOf(result)); which- as…
- how to initialize a SearchRec var?22
understanding that SearchRec has different formats for different OS targets, we've tried to use fillchar to initialize it to an empty record... unfortunately that does…
- Free Pascal 2.6.4-rc1 released!30
Hello We have placed the first release candidate of the Free Pascal Compiler version 2.6.4 on our ftp servers. You can help improve the upcoming 2.6.4 release by…
- Boolean types6
What is assignment-compatible with a bytebool etc.? My reading of the manual suggested that it should be possible to assign numeric zero or non-zero, but fPB1L: bytebool;
- Mailing list server migration1
I plan to migrate the mailing lists to a another server within the next hours/days. This might cause some down time. I hope no data gets lost :) Florian
- cannot read /sys/class/net/eth1/address even as root user on linux7
I tried to read the mac address in the captioned file path. In terminal, I can simply 'cat' and display the mac address. In FPC, when I tried to use TFileStream to read…
- Suppressing ^C signal from stdin4
When reading characters from a program's stdin using fpRead(), what's the best way of suppressing ^C so that it doesn't raise SIGTERM or whatever? I want to be able to…
- Warning: Variable xxx does not seem to be initialized10
I'm using FPC 2.6.2 and {advancedrecords}. The compiler shows a warning when I use a record variable. IMO this is a bug because record variables need not be initialized,…
- How to know the string type of a variable?15
Is possible to know what string type of a variable (AnsiString, UTF8String, RawByteString, etc)? Eg: === BEGIN === procedure foo(s: string); begin // if S is AnsiString…
- Very odd case parsing problem13
I've been wrestling with something for a chunk of the early evening, which is reproducible in situ but not in a cut-down test program. Using 2.6.2 on x86 Linux in objfpc…
- Android cross-compiler: arm-linux-androideabi- binutilsprefix2
Complete log: http://pastebin.com/Bj2EGmWD FPC trunk, trying to get an Android ARM cross compiler going. 1. Optimistically using FPC 2.6.2 as bootstrap - should I be…
- Memory leak in GetEnumerator2
I used HeapTrc on my TTreap class: https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas It reported memory leak in the following procedure: function…
