Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-10

  1. Resource compilation

    the $R directive accepts resource scripts (RC) and compiles the RES file from it on demand. However, that only happens if the RES file does not exist - if it does, the…

    Martok, Bart, Benito van der Zander
    47
  2. Is there any pascal interface to TensorFlow or other neural network tools?

    or even neural network libraries written in Pascal? I know there are many python interfaces/libraries but I hope to use Pascal entirely so that I don't have to run a…

    Dennis, Bo Berglund, Dennis Poon
    8
  3. FPC attributes / annotations support

    Bringing a discussion from the Lazarus mailing list to here. Is there a timeline when FPC might support attributes/annotations in trunk? Graeme

    Graeme Geldenhuys, el es, LacaK
    22
  4. cpu_relax() in freepascal

    I want to implement the cpu_relax() function in order to use it inside loops. However before, I would like to know if the fpc compiler is doing an optimization of this…

    Matias Vara, Adriaan van Os, Karoly Balogh (Charlie/SGR
    4
  5. fpsockets

    Do exists any way using the fpsockets family to know if a "fprecv" will block ? In other words do exists a call that return the amount of bytes that are ready to be…

    José Mejuto, Victor Campillo
    3
  6. FPC vs. Lazarus regarding some units...

    Hello, beginer here: Some years ago, I tried to port an old Delphi program to FreePascal, and discovered I had to use the entire Lazarus and not FPC alone due to some…

    Cleverson Casarin Uliana, Bart, Graeme Geldenhuys
    8
  7. Problem with array of const

    Consider the application below. When I run it I do get the following output: name rg��������name�F&{00000000-0000-0000-C000-000000000046} In other…

    Darius Blaszyk, Tony Whyman, Unknown author
    4
  8. Overloaded functions

    I have a problem with overloaded functions. I defined these functions: function val_(name: string): string; function val_(name: string): boolean; function val_(name:…

    Darius Blaszyk, Unknown author, Vojtěch Čihák
    3
  9. Callbacks as nested functions

    Is there anyway to get callbacks to work as nested functions? I get crashes when I try this and I assume it’s because the the compiler is replacing the first parameter…

    Ryan Joseph, Adriaan van Os, LacaK
    10
  10. InitThread/DoneThread

    In the latest version of MacOS calls to InitThread starting crashing so I removed the InitThread/DoneThread pair and surprisingly nothing broke. I was instructed some…

    Ryan Joseph, Michael Van Canneyt, Sven Barth
    3
  11. Generic<T> compiler error

    In Pascal we can do this: type TXStream = TStream; Now, TXStream is just an alias to TStream. How do the same with generic classes, using mode delphi? TBar<T> = TFoo<T>;…

    Marcos Douglas B. Santos, Maciej Izak, Marco van de Voort
    10
  12. PAPI module for FreePascal

    Hi all Does anybody know any module/binding for PAPI? I mean some library for reading hardware performance counters under Linux. Something similar to…

    denisgolovan
    0
  13. Plans to support various ISO modes

    I hope this question is not part of the FAQ list. What are the plans for FPC as to the support of the various ISO modes of Pascal? At the moment, there is a switch to…

    Dominik Rappaport, Marco van de Voort, Sven Barth
    2
  14. State of Extended RTTI

    I am just wondering where eRTTI is at for Free Pascal. I have found this 5 year old thread (http://fpc-devel.freepascal.narkive.com/4OnA5HH5/state-of-extended-rtti), so…

    Nicholas Ring, Maciej Izak, Sven Barth
    2
  15. FPC (trunk) on Linux/ppc64le

    I wonder if anybody has a compiled binary that she or he could share? I need to run FPC natively on an IBM ppc64 LE Linux platform. Tobias

    Unknown author, Pierre Muller, Tobias Giesen
    3
  16. FPC license file location

    I looked in the fcl at some units and there license information. The unit header comment mentioned that I should consult the COPYING.FPC file. The "packages" (fcl)…

    Graeme Geldenhuys, Tomas Hajny
    3
  17. Printing types in generics

    How should you print types in generics for debugging? here’s an example of how I’m doing it now but it’s hacky (forced type casting pointers) and tkSString crashes…

    Ryan Joseph, Sven Barth
    3
  18. CRT unit and Windows' terminal

    I want to create console app that's using box drawing characters from unicode. Before CRT unit is used, it's all fine and my program could draw table beautifully. But…

    Mr Bee, James Richters, Stefan V. Pantazi
    12
  19. Initializing constant (translate from C)

    Here's an interesting one. In C I have this code: #define ID1 MAKE_ID('A', 'B') Where MAKE_ID is a macro that depending on the endianness of the target will create…

    Darius Blaszyk, Dmitry Boyarintsev, Sven Barth
    2
  20. JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

    I'm developing an app were the client is written in Javascript + HTML and the backend in pascal (fpc) I'd like to use my pascal knowledge of RTL functions, mostly utils…

    Luiz Americo Pereira Camara, leledumbo, Marcos Douglas B. Santos
    9
  21. Lua language in /packages/lua will be update?

    I would like to know if the translation of Lua to FPC, which I found in /packages/lua, is an official translation or just a lib made by someone else, which was included…

    Marcos Douglas B. Santos, Ryan Joseph
    2
  22. Google Drive API

    I would like to know if FPC implements the full Google Drive API. If so, since which version? First, I need to implement upload, download and search of files [1]. Any…

    Marcos Douglas B. Santos, leledumbo, Michael Van Canneyt
    4
  23. Getting reason for failure with SendToRaw()

    I'm using SendToRaw() from a console application to send an email back to myself with attachments to aid in technical support. It always works find when I send the mail…

    James Richters
    0
  24. AbstractError in 3.1.1

    I just built the ppcx64 trunk version 3.1.1 so I could try the memory management operator overloads we talked about but I’m getting a compiler error in my project that…

    Ryan Joseph, Michael Van Canneyt, Sven Barth
    8
  25. compiler option for $J directive

    Is there any FPC command line option for writable constanst directive {$J} or {$WRITEABLECONST} ?  Since I knew this directive, I always set it to {$J-} (because {$J+}…

    Mr Bee, Christo Crause, Juha Manninen
    17
  26. Const params question

    If you declare a parameter as const does that effectively behave like passing by reference? I have some performance sensitive functions that take records as arguments…

    Ryan Joseph, Graeme Geldenhuys, Marcos Douglas B. Santos
    18
  27. no fpc.exe file after installation

    i installed “fpc-3.0.2.i386-win32.cross.x86_64-win64” on my laptop with windows 7, but there seem to be no fpc.exe file, so i can´t compile. In which folder should…

    Unknown author, Florian Klämpfl, Graeme Geldenhuys
    11
  28. alternative name fpc cross

    when I create the cross compiler to arm-android and arm-embedded I get the same compiler name so unable to have both running in the same system. any workaround? Regards…

    turro75, José Mejuto, Karoly Balogh (Charlie/SGR
    17
  29. getting cross with the cross compiler

    I am having trouble getting fpc to cross-compiler for win64 target. I'm using fedora 26 which supplies 3.0.2 I used instructions here to create the cross compiler using…

    Unknown author, Florian Klämpfl, Karoly Balogh (Charlie/SGR
    21
  30. TBufDataset vs TClientDataset

    I read a couple of archived mailing list posts about TBufDataset, which from what I read is FPC's equivalent to TClientDataset. That then begs the question... Why isn't…

    Graeme Geldenhuys, LacaK, Marcos Douglas B. Santos
    6
  31. Managed properties idea

    Yesterday when I was thinking about that enumerators I had an idea for a language feature and something which I saw introduced in Objective-C some years ago. Retaining…

    Ryan Joseph, Maciej Izak, Marcos Douglas B. Santos
    17
  32. Getting the subnet mask?

    Is there a way to get the subnet mask of an interface using the Ararat Synapse tools? I would like to make broadcast but some networks have a subnet mask of…

    Anthony Tekatch
    0
  33. Obtain file size?

    I am wondering how to get the file size reported by the OS for a particular file without opening it. I tried to search for ‘Free Pascal File Size’ and variations…

    James Richters, Paul Nance, Sven Barth
    3
  34. Finding long file names

    I'm trying to use findfirst()/findnext to obtain a list of files. Here's my code: Searchfile:=Tap_Drive+Tap_Path+'\'+Tap_SubDirectory+'\*.TAP'; If FindFirst(Searchfile,…

    James Richters, Michael Van Canneyt, Sven Barth
    3
  35. Connecting to a MySQL Server

    What library do I need to install on Raspian (Raspberry Pi) to allow Free Pascal to attach to a Mysql Server. Note the MySQL Server is running on a i5 and is actully …

    Terry A. Haimann, Michael Van Canneyt
    1
  36. how to get a list of all thread id

    In my multi thread programs (I use multiple threads in my program and the windows dll that I used also used multiple threads), from time to time, there are some problems…

    Dennis
    0
  37. For ..in GetEnumerator Allocation

    As I understand the for..in loop GetEnumerator method is expected to create a new object each time it’s called and FPC destroys it later when the loos is finished. Can…

    Ryan Joseph, Graeme Geldenhuys, Marco van de Voort
    9
  38. Yet another thread on Unicode Strings

    Unicode Character String handling is a question that keeps coming up on the Free Pascal Mailing lists and, empirically, it is hard to avoid the conclusion that there is…

    Tony Whyman, Marco van de Voort, Mattias Gaertner
    2
  39. Help on using direct pascal compiler

    I want to use fpc.exe directly to convert pascal code to executable (* .exe) file. I do not know how to use it. When it comes to the fpc.exe file, it tells you to press…

    sjc snc, Michael Van Canneyt, Tomas Hajny
    2