Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2013-03

  1. Set size limit

    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…

    Daniel Gaspary, Ewald, Flávio Etrusco
    29
  2. warning: link.res contains output sections; did you forget -T?

    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…

    Juha Manninen, Jonas Maebe, leledumbo
    6
  3. [OT] Pascal compiler for embedded platforms

    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

    Roberto P., greim, Justin Smyth
    24
  4. Object Pascal Grammar in EBNF like style

    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…

    Graeme Geldenhuys, Kenneth Cochran, Michael Van Canneyt
    6
  5. HMAC_SHA1 and FPC

    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…

    silvioprog, Anthony Walter, David Butler
    56
  6. FBLib (firebird library for FPC, Delphi and Kylix) has moved

    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…

    Graeme Geldenhuys, Martin Schreiber, Reinier Olislagers
    6
  7. Lazarus 1.0.8 Release

    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…

    Mattias Gaertner, Giuliano Colla
    2
  8. Findfirst/findnext with a samba share

    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…

    Max Vlasov, Jonas Maebe, Ludo Brands
    12
  9. Re: Feature proposal: function-based assignment operators

    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…

    leledumbo, Benito van der Zander, Florian Klämpfl
    51
  10. a proposal about "with" syntax

    Suppose I have the following class: type TMyClass = class public property Caption: string read FCaption write FCaption; property Items[Index: Integer]: string read…

    Xiangrong Fang, Bart, Daniel Gaspary
    63
  11. Example: regular expressions and "hash-tables"

    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…

    S. Fisher, Mark Morgan Lloyd, Mattias Gaertner
    11
  12. "Function header doesn't match" error

    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…

    Mark Morgan Lloyd, Ewald, Flávio Etrusco
    4
  13. newbie question

    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'…

    duilio foschi, Jonas Maebe, leledumbo
    8
  14. Delphi for ARM adds support for operators in classes

    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…

    Sven Barth
    0
  15. TStream descendant to compress/decompress gzip data from another stream

    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…

    Michalis Kamburelis, Ewald, Flávio Etrusco
    8
  16. Warning: "crti.o" and "crtn.o" not found

    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"…

    Anthony Walter, leledumbo, Marco van de Voort
    3
  17. RE: TStream descendant to compress/decompress gzip data from another stream

    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:…

    Justin Smyth, Michalis Kamburelis
    2
  18. Windows on ARM, how fast it can be implemented?

    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…

    Max Vlasov, Florian Klämpfl, Marco van de Voort
    20
  19. EmptyStr

    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…

    Ernest V Miller, Jonas Maebe
    2
  20. How to create Makefile files?

    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…

    silvioprog, Mattias Gaertner
    2
  21. position of External: SIGFPE

    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 :=…

    Xiangrong Fang, Jonas Maebe, Lukasz Sokol
    3
  22. Use generic class as parameter (was: how to write enumerator for trees)

    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…

    Xiangrong Fang, Sven Barth
    13
  23. FBAdmin

    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…

    Mark Morgan Lloyd, Ludo Brands, Reinier Olislagers
    3
  24. Easy string-splitting

    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…

    S. Fisher
    0
  25. OOP in FreePascal ARM-Embedded

    Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal compiler for ARM embedded platform? Cheers

    Juan Duran, Graeme Geldenhuys, Mark Morgan Lloyd
    5
  26. How To write an enumerator for trees

    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…

    Xiangrong Fang, kyan, Mattias Gaertner
    9
  27. Amazon S3

    Did someone already worked using Amazon S3 and FreePascal, maybe using Synapse? Is there a project open source for it? Marcos Douglas

    Marcos Douglas, Flávio Etrusco, Michael Schnell
    11
  28. Res: Amazon S3

    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 -…

    silvioprog
    0
  29. Failed manual page

    The page "Command-line options and switches Reference chart.. "[1] referenced at Manuals page[2] seems to be buggy. [1]…

    Daniel Gaspary, Bart
    1
  30. enumerate generic trees

    I encountered a problem writing enumerator for my generic tree. The enumerator class looks like this: TTreapEnumerator = class FStack: TStack; FCurrent: TTreap.PNode;…

    Xiangrong Fang, leledumbo
    1
  31. Weird absence of compilation error

    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; +…

    OBones, Gerhard Scholz, Tomas Hajny
    4
  32. TFPDataHashTable: how to iterate?

    Is there any way to iterate over a TFPDataHashTable ?

    S. Fisher, Xiangrong Fang
    1
  33. Reading exe version info on Linux?

    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:…

    Reinier Olislagers, Michael Van Canneyt
    4
  34. [TIP] Script for automatic installation of Lazarus 1.0.8 and Free Pascal 2.6.2 under Linux Mint 14 - 64bit

    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…

    silvioprog
    0
  35. Brook and Free Pascal 2.6.2 / Lazarus 1.0.8

    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…

    silvioprog
    0
  36. Linked list constant

    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);…

    Martin Schreiber, leledumbo, Sven Barth
    7
  37. TProcess: CommandLine deprecated

    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…

    Eric Kom, Noah Silva
    2
  38. Fork

    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.…

    Antonio Fortuny, leledumbo, Michael Van Canneyt
    3
  39. [OT] fpcup+FreeBSD/PC-BSD: getting linux compat binutils/libs for cross compiling

    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…

    Reinier Olislagers, Graeme Geldenhuys, Marco van de Voort
    5
  40. FreeBSD failure compiling fpdoc 2.7.1

    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…

    Graeme Geldenhuys, Marco van de Voort, Pierre Free Pascal
    8
  41. fpcup for FreeBSD

    (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).

    Reinier Olislagers, Marcos Douglas
    1
  42. test

    pls ignore

    patspiper
    0
  43. fcl-xml

    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…

    Unknown author, Benito van der Zander, Daniel Gaspary
    15
  44. Selective Class Helper

    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…

    Xiangrong Fang, Juha Manninen, leledumbo
    7
  45. Is it only properties that can have defaults in type definitions?

    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…

    Frank Church, Martin, Michael Van Canneyt
    3
  46. catch segfaults

    Is it possible to use try...except to catch SIGSEGV? Thanks!

    Xiangrong Fang, Ewald, Jonas Maebe
    10
  47. two questions about dynamic array

    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…

    Xiangrong Fang, Howard Page-Clark, Mattias Gaertner
    12
  48. about "reference-counted" variables

    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:…

    Xiangrong Fang, Marco van de Voort, Sven Barth
    5
  49. differences between .pp and .pas files

    Please what is a difference between .pp and .pas files extension? Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College…

    Eric Kom, Bart, Graeme Geldenhuys
    31
  50. [OT] Sven, don't defect to the dark side!

    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

    Reinier Olislagers, Justin Smyth, Mark Morgan Lloyd
    4