Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2015-02

  1. How do you build FPC?

    I'm using i386 32bit Linux for most of my development and currently using FPC 2.6.0. I'm trying to understand how to build FPC for various scenarios: Cross-compiling FPC…

    Jon Foster, Anthony Walter, Karoly Balogh (Charlie/SGR
    14
  2. Use sleep in thread

    Can I use Sleep() in a thread to give up cpu time to other threads running at the same time, so as to adjust the relative "niceness" of a group of workers working on the…

    Xiangrong Fang, A. Fortuny, Dmitry Boyarintsev
    35
  3. Failed compiling SVN source on Raspi 1 B+

    I just got my Raspberry 1 B+ and I wanted to install latest FPC (and Lazarus) on it. I got FPC v.2.6.4 installed from the linux-arm package. But then it failed to…

    Bee, John Lee, Karoly Balogh (Charlie/SGR
    7
  4. about interface and multiple inheritance

    This is an interesting article about interface and multiple inheritance in Java. http://blog.cleancoder.com/uncle-bob/2015/01/08/InterfaceConsideredHarmful.html I…

    Bee, Graeme Geldenhuys, Jonas Maebe
    23
  5. fpc-src_2.6.4-140420_i386 from debs at sourceforge : error while processing dpkg install

    I got : " dpkg: error processing fpc-src_2.6.4-140420_i386.deb (--install): trying to overwrite '/usr/share/fpcsrc/2.6.4/packages/postgres/src/postgres3.pp', which is…

    Lukasz Sokol, Mattias Gaertner
    4
  6. TThread.Queue vs TThread.Synchronize

    I've recently seen some posts in Delphi groups that the preferred way is to use TThread.Queue instead of TThread.Synchronize. Why is that? What are the benefits? I've…

    Graeme Geldenhuys, Marco van de Voort, Marcos Douglas
    40
  7. Differences between ppc386 and ppcross386

    What are the differences between ppc386 and ppcross386? Related question: When calling "fpc -Pi386" it searches for ppc386, but not for ppcross386. Why is that? Mattias

    Mattias Gaertner, Jonas Maebe
    2
  8. RTFM question (?): which variables/fields are initialized by fpc?

    I cannot find it in the docs (probably not looking in the right place). Which variables/class-fields are initialized by the compiler? My understanding is that: - global…

    Bart, Michael Van Canneyt
    1
  9. libxml on MacOS X

    is there a specific reason why libxml is not built for MacOS X / darwin? My first instinct was to "just try it" and but then I found out the hard way, that I have no…

    Andreas Schneider, Marco van de Voort
    2
  10. Brook Framework and Template Engines

    What's the current status of the Brook Server Pages project? What's the recommended template engine to use with Brook Framework? Best regards

    Fabrício Srdic, Flávio Etrusco, luiz americo pereira camara
    9
  11. May I Interject? A Generic Inheriting a Generic in a Generic Way

    I have an idea called Interjections. I have posted on the forum so that everybody can access it nicely. Here are the links:…

    Raheman Velji, Sven Barth
    1
  12. Reading build-id

    Does anybody have any example code for a program to read its own build-id (ELF note NT_GNU_BUILD_ID), if defined? Presumably this uses bfd.pas, which I notice is GPL…

    Mark Morgan Lloyd
    0
  13. fpc-arm-embedded bin doesn't run

    I'm trying to get the fpc working on a stm32f103c8 board (maple_mini_clone). following this http://j-software.dk/stm32f103.php <http://j-software.dk/stm32f103.php> I'm…

    turro75, Jeppe Græsdal Johansen, Mattias Gaertner
    5
  14. Record helpers on built in types?

    I tried this out today on FPC fixes_3_0 and was surprised to see it worked: type StringHelper = record helper for string private function GetLength: Integer; procedure…

    Anthony Walter, Dmitry Boyarintsev, leledumbo
    26
  15. Some features for FPC 3.0?

    Just got an article about new language features from RO's Oxygene language. I think some of them might be good to be (considered and) implemented in FPC v.3.…

    Bee, Florian Klämpfl, LacaK
    27
  16. How can you convert an enum value to string?

    Is there a subroutine that can convert an enum value to a strings, so that I can do something like ShowMessage(EnumToStr(enumValue))? Frank Church =======================

    Frank Church, Graeme Geldenhuys, Howard Page-Clark
    12
  17. Functions for int128rec ?

    I noticed that there is "int128rec" type, but I do not found any support routines which can do operations like multiplication, addition with this type. Is there…

    LacaK
    0
  18. How to use FCGI in threaded mode?

    Using the TCustomHTTPApplication class, I just set the "Threaded" property to true, and my application works in threaded mode. But, how to do the same in…

    silvioprog, Marco van de Voort, Michael Schnell
    28
  19. linking and using dynamic libraries on amd64

    when I try to run a program that dynamically links an external .so library it throws a SIGSEGV seems to happen while loading the library before any code of mine is…

    Marc Santhoff, Jonas Maebe, Tony Whyman
    10
  20. Raspberry Pi

    Thank you very much to all Freepascal and Lazarus developers. Today I was able to compile all my applications within "Raspberry Pi". I am very happy. Many thanks to…

    Gustavo Enrique Jimenez, Fabio Luis Girardi
    1
  21. access violations on new ARM hardware

    we use an ARM based SOM for a device developed by us, the software is developed using Lazarus. Now we are testing a new version of the SOM and can't get our software to…

    Björn Schreiber, Jonas Maebe, Marco van de Voort
    13
  22. Generic: generic type in generic methods

    I'm trying to port some of my drafts from Delphi to FPC, but I'm taking some problems. See this sample: http://pastebin.com/Jb6UjDX9 Notice that I specialized the…

    silvioprog, Sven Barth
    2
  23. Generic: restricting a specialized type

    I'm trying to port a Delphi code to FPC, and it has a structure like: TType = class(TObject) end; TTest<T1; T2: TType> = class(TObject) end; TFoo = class(TType) end;…

    silvioprog, Sven Barth
    2
  24. New Get Lazarus Initiative

    I am please to announce the launch of a new initiative to promote Free Pascal and Lazarus. The hub of this initiative is http://www.getlazarus.org The get Lazarus…

    Anthony Walter, Daniel Franzini, DaWorm
    17
  25. Wraper for libpciaccess ?

    Does anyone know of an FPC wrapper for the library libpciaccess ? Thanks in advance Brian View this message in context:…

    Brian
    1
  26. A Delphi "class constructor" does not compile in FPC

    First, please test the code below in Delphi and after in FPC: TTest = class public class constructor Create; constructor Create; virtual; end; ... constructor…

    silvioprog, Sven Barth
    2
  27. SDL 2.xx

    I currently have an application running under Ubuntu 14.04 using SDL 2.03 and have a few questions . Currently the window / rendering / event handler are running in a…

    Brian, Michael Schnell
    4
  28. why fpc do not use a known return function value

    Hi in this program test function has a known return value , and should be calculated in compile time , but fpc make it in real time !!! --------------------- program…

    misu kun, Florian Klämpfl, Jonas Maebe
    16
  29. FieldAddress

    What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M+}), placing the field in…

    Torsten Bonde Christiansen, silvioprog, Sven Barth
    3
  30. DB Access and Multithread

    The DB access framework of the fpc is not thread safe. So, how can i build a multithreaded application that requires access to database? If each one of my threads use…

    Fabrício Srdic, JB, Michael Schnell
    3
  31. Reinier Olislagers

    someone please tell me that BigChimp on the forums is not Reinier Olislagers in RL...

    waldo kitty, Bart
    3