fpc-pascal · 2013-03
- Set size limit29
I am trying to create a Set Type... TMyEnum = (me1, me2, me3); // more than 500 elements TMySet = set of TMyEnum; ...but I get the following error: "Error: illegal type…
- warning: link.res contains output sections; did you forget -T?6
Yes, I know this warning can be ignored, and every active member of this list knows it, too. However new users don't know it. Everybody who tries FPC / Lazarus for the…
- [OT] Pascal compiler for embedded platforms24
has anyone of you had the chance to try this Pascal compiler for embedded platforms? http://www.mikroe.com/mikropascal/ Any comment will be appreciated! Roberto
- Object Pascal Grammar in EBNF like style6
I'm putting together a EBNF like syntax [not strictly EBNF] for the Object Pascal grammar, as implemented by Free Pascal, using the {$mode objfpc} compiler mode. I'm…
- HMAC_SHA1 and FPC56
How to get HMAC_SHA1 using native functions of FPC? HMAC_SHA1: http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA2…
- FBLib (firebird library for FPC, Delphi and Kylix) has moved6
For years the FBLib (Firebird database library for Free Pascal, Delphi and Kylix) has lived in the '3rdParty' directory tree of tiOPF. We are cleaning up the tiOPF…
- Lazarus 1.0.8 Release2
The Lazarus team is glad to announce the release of Lazarus 1.0.8. This is a bug fix release, built with the current fpc 2.6.2. The previous release 1.0.6 was built with…
- Findfirst/findnext with a samba share12
Working with lazarus on Linux Mint I noticed that when I mount a windows shared with "Connect to server", everything works fine (Nautilus, Midnight Commander, Lazarus…
- Re: Feature proposal: function-based assignment operators51
Hmm... Haskell? Or Nimrod? Or something else? What's the benefit? How will it affect existing code? Last but not least, will you implement it? View this message in…
- a proposal about "with" syntax63
Suppose I have the following class: type TMyClass = class public property Caption: string read FCaption write FCaption; property Items[Index: Integer]: string read…
- Example: regular expressions and "hash-tables"11
Not actually a hash-table, but an AvgLvlTree, which can be used the same way. The AvgLvlTree unit comes with Lazarus; if you don't have that, you can download…
- "Function header doesn't match" error4
I wonder whether anybody could throw some light on a curious error. I've just tried to move a class definition into the interface part of a unit, so that I could easily…
- newbie question8
I had somebody install fpc and brook framework into my linux server (as probably I would not had been able to do it) Then I tried to compile the first 'hello world'…
- Delphi for ARM adds support for operators in classes0
Hello together! I just found this: http://blog.marcocantu.com/blog/class_operators_delphi.html If I interpret this correctly this relies on the new Automatic Reference…
- TStream descendant to compress/decompress gzip data from another stream8
Like the subject says, I'm looking for a TStream implementation that takes another TStream and compresses/decompresses data in gzip format. I would like to read/write…
- Warning: "crti.o" and "crtn.o" not found3
What is causing warnings for "crti.o" and "crtn.o" as described below? I just got the latest fpc and lazarus from svn, and after build everything I wrote a "Hello World"…
- RE: TStream descendant to compress/decompress gzip data from another stream2
I have converted the one from fpc to its own library to do streams , can email it to you later if you wish -----Original Message----- From: "Michalis Kamburelis" Sent:…
- Windows on ARM, how fast it can be implemented?20
If this news is right http://www.bloomberg.com/news/2010-12-21/microsoft-is-said-to-announce-version-of-windows-for-arm-chips-at-ces-show.html There will be ARM Win32 in…
- EmptyStr2
Hello! Why assigning EmptyStr as default value in signature is not allowed while using it in body is OK? Using fpc 2.6.0 function…
- How to create Makefile files?2
I've the following structure of directories: -src -examples -tests And this file: fpmake.pp - (http://pastebin.com/DTw9QyqF) Now, what steps to create my Makefile and…
- position of External: SIGFPE3
Why the "External: SIGFPE" error not reported on the line it was generated? e.g. In the following code: 1: if SomeCondition then begin 2: Y := exp(Y); 3: end; 4: d :=…
- Use generic class as parameter (was: how to write enumerator for trees)13
I try to do exactly the same as show here: QUOTE: http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-stl/src/gvector.pp generic TVector<T> = class ... ... type…
- FBAdmin3
I've added a call to FBAdmin to what I'm working on, to get the full description of the server (i.e. comparable to PostgreSQL's version() function). Thanks Ludo :-) Is…
- Easy string-splitting0
uses regexpr, classes; var pieces : tstringlist; s : string; begin pieces := TStringList.create; 'thus--and even , hurly-burly,willy-nilly', pieces ); for s in pieces do…
- OOP in FreePascal ARM-Embedded5
Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal compiler for ARM embedded platform? Cheers
- How To write an enumerator for trees9
I would like to add enumerator support for my TTreap implementation ( https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas). The tree nodes are defined…
- Amazon S311
Did someone already worked using Amazon S3 and FreePascal, maybe using Synapse? Is there a project open source for it? Marcos Douglas
- Res: Amazon S30
I sent an end answer in issue about S3: https://github.com/silvioprog/brookframework/issues/14 Sorry for my delays in answer please. Silvio Clécio My public projects -…
- Failed manual page1
The page "Command-line options and switches Reference chart.. "[1] referenced at Manuals page[2] seems to be buggy. [1]…
- enumerate generic trees1
I encountered a problem writing enumerator for my generic tree. The enumerator class looks like this: TTreapEnumerator = class FStack: TStack; FCurrent: TTreap.PNode;…
- Weird absence of compilation error4
I'm using FPC 2.6.0 and have the following test program : program test; function Element: Double; begin Result := 4; end; function Tmp: Double; begin Result := 10; +…
- TFPDataHashTable: how to iterate?1
Is there any way to iterate over a TFPDataHashTable ?
- Reading exe version info on Linux?4
The program below works fine on Windows for reading e.g. info on explorer.exe It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with explorer.exe:…
- [TIP] Script for automatic installation of Lazarus 1.0.8 and Free Pascal 2.6.2 under Linux Mint 14 - 64bit0
Yesterday I created a script to install the Lazarus 1.0.8 and Free Pascal 2.6.2 on Mint 14 - 64 bit. The installation is done from DEBs downloaded via Source Forge. For…
- Brook and Free Pascal 2.6.2 / Lazarus 1.0.80
Now, it's possible to compile Brook in current released Free Pascal and Lazarus, however, not yet released the new release of Brook, however you can download a snapshot…
- Linked list constant7
I need to build linked list constants, something like " type pbty = ^bty; aty = record b: pbty; end; paty = ^aty; bty = record a: paty; end; const b0: bty = (a: @a0);…
- TProcess: CommandLine deprecated2
During the compile time, a received at warning message Symbol "CommandLine" is deprecated. They is another method to replace CommandLine from the TProcess? so that I can…
- Fork3
Hi Folks. Where do I use oldlinux from ? I'd like to use the Fork function but Lazarus tells me IpDaemon.lpr(0,0) Fatal: Can not find unit oldlinux used by IpDaemon.…
- [OT] fpcup+FreeBSD/PC-BSD: getting linux compat binutils/libs for cross compiling5
Looked into getting an fpcup FreeBSD x64=>Linux x86 cross compiler module going on PC-BSD 9/FreeBSD 9.1. Although the /compat/linux library is there, it misses binutils…
- FreeBSD failure compiling fpdoc 2.7.18
Below is the script I use to compile FPC 2.7.1. I am using FPC 2.6.0 (I noticed it is still allowed for a while, even though 2.6.2 is out). --------------[ go.sh…
- fpcup for FreeBSD1
(Cross posted: FPC+Laz lists) I've updated the fpcup automatic FPC+Laz installer from svn for FreeBSD. Tested on PC BSD, (similar to FreeBSD 9 x64 but with built in x11).
- test0
pls ignore
- fcl-xml15
working with fcl-xml some questions came together. Every hint is appreciated. 1. No matter what I do and which (short & valid) xml file I use - getElementById is always…
- Selective Class Helper7
Is it possible for class helpers to be "selective"? i.e. attach to a specific object of that class, but not every instance? This would be useful for "behavior…
- Is it only properties that can have defaults in type definitions?3
Is it only properties that can have defaults in type definitions? ie can private fields be only initialized after creation, eg in the constructor? Is something like this…
- catch segfaults10
Is it possible to use try...except to catch SIGSEGV? Thanks!
- two questions about dynamic array12
I have two simple questions: 1) As far as I know class variables in FPC are automatic initialize to the NULL value (e.g. 0 or "" or whatever), does that include dynamic…
- about "reference-counted" variables5
Is there a "complete" list of reference counted variables in FP? e.g. dynamic arrays are ref-counted. but are variables allocated by New() ref-counted? My use case is:…
- differences between .pp and .pas files31
Please what is a difference between .pp and .pas files extension? Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College…
- [OT] Sven, don't defect to the dark side!4
Permitting myself a small tongue-in-cheek interruption of the regular activities on this mailing list: Sad enough that you're almost no student anymore (presumably equals
