Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2012-11

  1. Automatically exporting C++ API using SWIG??

    The recent thread about using C headers made me think about using C++ projects. Found that the SWIG tool converts C/C++ .h files into glue code and bindings for e.g.…

    Reinier Olislagers, download itweb, Krzysztof
    26
  2. Tests in Delphi XE3 regarding Type Helpers

    Hello together! Could someone with access to Delphi XE3 please compile and run the attached tests and provide me with the output of the test or (in case of an error)…

    Sven Barth
    0
  3. problem with command line defines??

    on OS/2 eCS2 i have fpc 2.6.0 release installed... i've been working with a library and needed to create a define so that some code would be compiled that otherwise is…

    waldo kitty, Jonas Maebe, Tomas Hajny
    4
  4. Free Pascal 2.6.2 rc1

    We have placed the first release-candidate of the Free Pascal Compiler version 2.6.2 on our ftp-servers. You can help improve the upcoming 2.6.2 release by downloading…

    Marco van de Voort, Bart, LacaK
    17
  5. Change Endian of String types

    Is there a way to convert endian of a string (from little to big and vice versa) ? Ido

    ik, Mark Morgan Lloyd, Vincent Snijders
    5
  6. Complex circular references

    Hi all Now and again, I am trying to debug complex circular references. By complex circular references I mean those which are produced by cyclic graphs of units, not…

    denisgolovan, Jorge Aldo G. de F. Junior, leledumbo
    6
  7. bootstrapping from svn

    Well, I decided to make another attempt at running from the svn fixes_2_6 branch The first problem I encountered was that I could not compile from fpc 2.4.4. It sure…

    David Emerson, Graeme Geldenhuys, leledumbo
    5
  8. A simple HTTP request with FPC standard units

    Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a "get" in a URL and take a string back. I imagine it…

    luciano de souza, Leonardo M. Ramé, Michael Van Canneyt
    17
  9. Errors using Extended Class Syntax

    I followed the example on the wiki page, but the compiler disallowed both of the following attempts. {$mode objfpc}{$H+} TExample1 = class private const CN_CONST =…

    bsquared, Jonas Maebe
    2
  10. "Case of" documentation

    Describing the Case statement The FPLanguageReference.pdf 10.2.2 says: The constants appearing in the various case parts must be known at compile-time, and can be of the…

    Howard Page-Clark, Michael Van Canneyt
    1
  11. Fwd: [OFF-TOPIC] EazyRSS - A simple writer and reader for the RSS protocol

    This topic has started in FPC-Devel, but I regard more people wile can be interested. Is EazyRSS useful for anyone? Should it be included in the standard units of Free…

    silvioprog, luciano de souza
    1
  12. Is it possible to redefine FreePascal types?

    Lets say I am using some string variables, but I want to ensure that there are no typing errors in some code I am using. so I define newString as a new string type and…

    Frank Church, Ewald, Graeme Geldenhuys
    7
  13. Is there some runtime variable informs whether a program is running in a debugger or contains debugging information?

    Is there some runtime variable informs whether a program is running in a debugger or contains debugging information? Frank Church =======================…

    Frank Church
    0
  14. BSD

    Somebody's suggesting we ought to be at least 's the preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD etc.? Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

    Mark Morgan Lloyd, Graeme Geldenhuys, Marco van de Voort
    6
  15. mobile application

    I need to identify a reliable portable device that I can program in FPC-Pascal. This device could be a smartphone or whatever you suggest. Cost is one element to keep in…

    duilio foschi, Carsten Bager, Graeme Geldenhuys
    7
  16. Pathscale: alternative debugger on Linux?

    Has anybody tried the Pathscale debugger on Linux x64/FreeBSD? I haven't myself, just heard that they open sourced their compiler suite. A download page seems to be here:

    Reinier Olislagers, Jonas Maebe, Lukasz Sokol
    12
  17. Simple CGI Application

    Dear Administrator! During the installation of the package named CGILaz.lpk on Lazarus IDE 0.9.30.4 the following report is given out: Stream=TCGIDatamodule1:…

    Vadim Valerievich
    0
  18. fpc: -vm switch

    Related to http://bugs.freepascal.org/view.php?id=23347 Using fpc 2.6.0 Does 2.6.0 handle -vm switch, and how is it used? In related bug…

    Bart, Jonas Maebe, Mark Morgan Lloyd
    8
  19. How to make class constructor body calls descendant's overriden method/property?

    Cross posted from stackoverflow: http://stackoverflow.com/questions/13431079/how-to-make-class-constructor-body-calls-descendants-overriden-method-property I'm writing…

    leledumbo, JC Chu, Joao Morais
    5
  20. Seeking Information About Writing SQLite Modules

    The project I am working on may require that I write a Collation extension or module for SQLite. I am looking for some information to get me started with this using FPC.

    bsquared
    0
  21. FPObserver Examples anywhere?

    Does anyone know of any example code for the FPObserver interface? Preferable with Collections. Thank you. Brian

    bsquared, Graeme Geldenhuys, Sven Barth
    8
  22. A question about generic collections - maybe...

    I am wondering what the best approach to this problem is. I have what amounts to a Tstringlist that I am attempting to use generics for typing the objects and I would…

    bsquared
    1
  23. chr does not return an error when number bigger then byte enters

    I'ved started a crossaide against PHP (http://idkn.wordpress.com/2012/11/14/why-php-must-be-abandoned-in-my-opinion/), due to few issues it have such as chr(256) will…

    ik, Jonas Maebe
    1
  24. Coverity for FPC?!?

    Companies/tools like Coverity do source code analysis to find security/stability defects, mainly on C++ code, but these tools also are available for other languages.…

    Reinier Olislagers, leledumbo
    2
  25. Building 2.7.1 cross compiler

    Since a few weeks, I have been unable to build the 2.7.1 cross compiler (from Linux 32 bit to Win32), while the 2.6.1 cross compiler builds merrily. My OS is Ubuntu…

    patspiper, bsquared
    2
  26. OS/2 and fcl-base\syncobjs

    is fcl-base\syncobjs not ready for use with OS/2? i'm trying to work with synapse40... it doesn't have any IFDEFs for OS/2 which i'm sure are or will be needed... the…

    waldo kitty, Tomas Hajny
    1
  27. array of const with cdecl procedure

    I'm trying to write a shard library of my own that you can use with C as well. I'm using mode fpc, and not objfpc. I created something like this: ... procedure…

    ik, Bernd, Jonas Maebe
    11
  28. synapse and OS/2

    before i get too much further along on this project, i guess i should ask about the ssleay32 and libeay32 libraries on OS/2... i'm developing this project on windows…

    waldo kitty, Tomas Hajny
    2
  29. Can JCF handle Generics?

    Is there a way to have JCF deal with generics? It looks like it complains about them. eg. JCF: Exception TEParseError Unexpected token, expected ";" Near TFPGMap Thank…

    bsquared, leledumbo
    2
  30. working witg UCS4Char

    I'm trying to work with UCS4Char (for this: https://github.com/ik5/fp-msgpack), but I can't figure out how to do it. For example, if do the following:…

    ik, Jonas Maebe, Tomas Hajny
    7
  31. B-tree Filer

    I have converted b-tree filer to work on Free Pascal on Windows Xp and Windows 7. Two of the function do not work, (reorg rekey). I wrote three function that do the same…

    Allen Harrington
    1
  32. adding additional libraries

    when you add additional libraries to your FPC and/or Lazarus installation, how do you normally do it? where do you normally place them? i'm thinking of libraries like…

    waldo kitty, Graeme Geldenhuys, Michael Fuchs
    4
  33. RESTful JSON: Your thoughts about implementation

    I thought I would put this out to see what helpful information I could gather. I am in need of some JSON and HTTP functionality. I am thinking about using some pieces…

    bsquared, Michael Van Canneyt
    8
  34. wayland support for FPC

    It seems that many GUI toolkits are slowly starting to move to wayland (http://wayland.freedesktop.org/), that moved to v1.0 Is there anyone who currently working on…

    ik, Graeme Geldenhuys, Henry Vermaak
    12
  35. New fpcup version released

    (Cross-posted to lazarus & fpc mailing lists) I'm happy to announce a new binary version of Ludo Brands' and my fpcup FPC+Lazarus+packages SVN downloader/installer. New…

    Reinier Olislagers
    0
  36. Xcode

    Can somebody explain Xcode-installtion? Last version of free pascal is 2.6 and working with Xcode 3.2.6. Meanwhile last Xcode version is 4.4.1. Version 4.1 was installed…

    Franz, Felipe Monteiro de Carvalho, Jonas Maebe
    17
  37. secure REST client?

    i'm looking at creating a REST web application client... nothing fancy... command line oriented... fire it up, it logs into the website and performs the REST queries…

    waldo kitty, Michael Van Canneyt, Victor Matuzenko
    6
  38. Editing resource of executable

    I have some problem. Example: I created some exec using free pascal and lazarus. It is placed on http server. User in webbrowser click download, and server should attach…

    Krzysztof, Graeme Geldenhuys, Jonas Maebe
    22
  39. What is the size of AnsiChar

    As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of…

    ik, Jonas Maebe, LacaK
    5
  40. cannot make debugserver

    I am trying to get back up to speed after a couple of years away from FPC/Laz, and I hope I am not a P.I.T.A. ... I searched the mail archive, but I found nothing. I am…

    bsquared, Ewald, Graeme Geldenhuys
    16
  41. Questions About Porting Java and Extended Class Syntax Features

    I am looking into porting Java to Free Pascal. I have some confusion about how to port certain types of Java Lang Features. What is the best way to port 'private static…

    bsquared, JC Chu, leledumbo
    5
  42. Re: weird printout of char

    Try this: (a char is only one byte, you're trying to print a multi-byte character: print multiple one-byte characters) WriteLn(#$d7, #$90); Ewald Events don't…

    Ewald, ik, Jonas Maebe
    6
  43. Testing if exception raised in fpcUnit

    I wish to test if a method has raised an exception for a value (something that should make the test pass) or not. For example: function TestNum(ch : Char) : Byte; begin…

    ik, Graeme Geldenhuys, Michael Van Canneyt
    7
  44. FPCUnit checking Single values

    I'm trying to check Single value. I'm doing the following: a := 1.1; b := 1.1; CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); It reports an error, one of…

    ik, Unknown author
    2
  45. Why opening a file for write fails in fpc 2.6?

    In Linux environment the following code: try USBOut := FileOpen(UsbDev,fmOpenWrite); except result := True; end; is used in a Lazarus application to get a handle to…

    Giuliano Colla, Graeme Geldenhuys, Jonas Maebe
    21
  46. Best way to transfer data between applications?

    I am familiar with the basic underlying methods available for transferring data between processes on Windows and Unix, i.e. Pipes, Shared memory, and TCP/IP - but what I…

    印場 乃亜, Alberto Narduzzi, Ewald
    21
  47. Cross-compiling FPC trunk to Win x64 fails using fpcup - make file problems?

    I wonder if the problems below are caused by wrong make files or problems in fpcup: (fpc trunk, Windows; fpcup compiles fpc x86+Lazarus fine, then tries an x64 cross…

    Reinier Olislagers, Jonas Maebe
    3
  48. convert floating point to bcd and vice versa

    I need to convert floating point (Single and Double) to an array of bytes (BCD) and vice versa. Are there any existed implementation for it ? Ido

    ik, Ewald
    2