Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2008-12

  1. How to build .so with FPC and use it in C program?

    Hello, FPC-Pascal. How to build .so with FPC and use it in C program on FreeBSD platform? KES

    KES, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    12
  2. Debugger support for FP (issues with libgdb.a)

    I've tried to use the debugger in FP 2.2.2 and I got this error "No debugger support available" The I read online and found that I need to get libgdb.a from a build of…

    Andrea, Jonas Maebe, Joost van der Sluis
    9
  3. Using FPC MM in a C program

    Since it's possible to use libc's MM via cmem unit, would the opposite be possible? View this message in context:…

    leledumbo, Krishna, Micha Nelissen
    6
  4. fpImage resample via interpolation

    As far as I can see, fpImage has for StretchDraw only the TMitchelInterpolation. The current implementation has a few drawbacks: - it creates a temporary image for…

    Mattias Gaertner, Andreas Frieß, Felipe Monteiro de Carvalho
    13
  5. Error: Assembler as not found, switching to external assembling

    Hi all I'm sorry in advanced about my poor english (I'm spanish talking) I am returning to pascal, and in OSX 10.5.5, fpk 2.2.2 (installed from .dmg) I tried this:…

    César Espinoza, Giulio Bernardi, Jonas Maebe
    3
  6. DateTimeToUnix bug?

    I thought I'd get feedback here before I log this as a bug: ================================================== program Project1; uses DateUtils; var utime : longword;…

    Seth Grover, John Coppens, Joost van der Sluis
    5
  7. Warning strftime format

    I had a very small and nasty bug that I discovered today. I use strftime to format a date, and I accidentally used the %g option rather then %y. The difference is that…

    ik
    0
  8. DWARF line info cannot be used gdb

    Hi, all i'm trying to use gdb to debug FPC compiled file with DWARF debug information. fpc -gw3 test.pas here's test.pas listing ---codestart-- procedure TestUp; begin…

    dmitry boyarintsev, Florian Klaempfl, Jonas Maebe
    21
  9. bitwise generator

    I wish to create a firebird generator that does bitwise generation rather then ordinal generator. I mean: 1 2 4 8 16 32 64 128 etc.. Does anyone have knowledge how to…

    ik, Francisco Reyes, Zaher Dirkey
    3
  10. exitcode

    Where is the earliest position to set the exitcode? Which exitcode does the program generate if an error occurs? For example a seg fault.

    Rainer Stratmann, Jonas Maebe
    5
  11. A Docs Unit?

    Is there a unit for documentation in Pascal? The only documenter I know is Natural Docs, which is not a pascal unit but something I use across multiple languages.

    Joseph Montanez, Marco van de Voort, Michael Van Canneyt
    4
  12. Dynlibs.LoadLibrary on 64bit Debian (Ubuntu)

    I'm running into another issue where I create all classes from scratch to avoid using Classes unit inside library and now my library won't load. The only FPC related…

    Andrew Brunner, Jonas Maebe, Joost van der Sluis
    10
  13. Initializing Arrays?

    I've already read that its not built into pascal but how do I get around this? If I have: contacts : array [1 .. 256] of JSMContact; the only way to initialize it is?…

    Joseph Montanez, Andrew Brunner, Jürgen Hestermann
    2
  14. My favourite missing feature

    There seem to be a number of people currently making outrageous suggestions about missing features or how FPC could best be repackaged and promoted, so since it's the…

    Mark Morgan Lloyd, Frank de Groot (Rent-a-Geek, Henry Vermaak
    24
  15. installing lazarus from debian backports - Broken package

    I have posted the following problem to Newsgroups: gmane.linux.debian.user but there we can't to solve it.. <#mml type=message/rfc822 disposition=inline> Path:…

    Csanyi Pal, Jonas Maebe, Mark Morgan Lloyd
    3
  16. Array [THandle] of pointer

    Following Setup: Ubuntu 8.10 x64 FPC 2.2.3 (latest and greatest) Lazarus (Latest and greatest) I'm seeing an anomaly with reading/writing to an Array[THandle] of…

    Andrew Brunner, Jonas Maebe, Marc Weustink
    3
  17. TListBox bug in LCL of Lazarus?

    hopefully someone can help me with my first steps at migrating my Delphi programs to Lazarus. I have a TListBox which I modify in the following way:…

    Jürgen Hestermann, Felipe Monteiro de Carvalho, Joost van der Sluis
    27
  18. Problems with FP-IDE with xterm

    I've just started using fpc and I noticed that xterm does not show the IDE very well. I'm using xterm X.Org 6.8.99.903(236) and fpc 2.2.2 Here are 2 examples…

    Andrea, Marco van de Voort
    2
  19. Schema Types

    I'm considering movingn from GPC to FPC. One thing I like very much about GPC is its schema types. I can declare a matrix like this:…

    Kevan Hashemi, Andrew Brunner, Felipe Monteiro de Carvalho
    8
  20. Unexpected duplicate identifiers

    I've got a class that looks in part like this: TTextStore= CLASS(TStringList) PRIVATE PROCEDURE NeverSort(sort: BOOLEAN); PUBLIC FUNCTION HereDocument(CONST name:…

    Mark Morgan Lloyd, Mattias Gärtner, Unknown author
    4
  21. Options for configuring GDB

    I'm curious why my FPIDE with GDB 6.8 compiled with MinGW crashes while GDB says OK (see http://bugs.freepascal.org/view.php?id=11968…

    leledumbo, Florian Klaempfl
    1
  22. MSEide+MSEgui version 2.0beta2

    MSEide+MSEgui version 2.0beta2 has been released: https://sourceforge.net/project/showfiles.php?group_id=165409 Martin

    Martin Schreiber
    0
  23. [OT] syntax diagrams in the reference guide

    I'd like to ask: Is there any tool for creating the syntax diagrams shown in the reference guide? If yes, which one and where can I get it? Marc

    Marc Santhoff, leledumbo, Michael Van Canneyt
    3
  24. Forcing a text file to use a predefined handle

    I can get a program compiled with Turbo Pascal to use the existing stderr handle for output like this: PROGRAM Meta2(Input, Output, Error); .. Assign(Error, '');…

    Mark Morgan Lloyd, Michael Van Canneyt
    2
  25. Procedure types

    I've got a few thousand lines of Pascal which I'm converting to FPC. It's actually the Meta-2 compiler-compiler which despite its age I still find useful for embedded…

    Mark Morgan Lloyd, JoshyFun, leledumbo
    8
  26. TProcess question

    Just played with TProcess for the first time. (I come from Delphi 3) I observed some oddities (?, or maybe I'm just dumb ...). If you try to execute a process that is…

    Bart, Andrew Brunner, Brad Campbell
    19
  27. Problems with Dynlibs.UnloadLibrary on Linux

    I've been experiencing problems with SOs under Linux and am trying to develop a "Plugin" system for my Server I'm porting to Lazarus. I'm confident can get these…

    Andrew Brunner, Felipe Monteiro de Carvalho, Jonas Maebe
    9
  28. fpc 2.2.2 in fink for Mac OS X

    Hi A revised version of fpc 2.2.2 has been added to the unstable tree of fink. Main new features are IntelMac crosscompilers for Win32 and linux-i386. The i386…

    Schindler Karl-Michael, Leonardo M. Ramé
    1
  29. Using OpenCASCADE 3d tools with Pascal?

    I am wondering if anyone here has ever managed to use the free open-source OpenCASCADE 3d tools (www.opencascade.org) with Pascal before? An already developed ActiveX…

    Paul Nicholls, Marc Santhoff
    4
  30. RRDTool binding

    Is there a binding for RRDTool ? With a linux-box I'm monitoring a device and for the moment I store the data in a text-file. Then I convert that text-file to a script…

    Koenraad Lelong, Mattias Gaertner
    1
  31. Kerberos for Free Pascal

    Have anyone here ever used Kerberos with free pascal, and/or know on a good Pascal binding for using it (including finding name value items) ? Ido…

    ik
    0
  32. Interactive process with TProcess

    OK, since no one answers this in Lazarus forum, I'll ask here as it's more FPC (FCL, actually) related than LCL. I want to create an interactive process, so I need to…

    leledumbo, Michael Van Canneyt, Vincent Snijders
    3
  33. OnGuard WinCE

    i can't compile TPOnGuard for WinCE ... Does anyone succeded to use TPOnGuard in WinCE ? Dimitrios Chr. Ioannidis No virus found in this outgoing message. Checked by AVG…

    Dimitrios Chr. Ioannidis
    0
  34. number of cpu cores

    I need a default value of the number of maximum threads. Is there already some RTL function that can be used for that? For example if the program runs on a 2 x quad core…

    Mattias Gaertner, Dariusz Mazur, Florian Klaempfl
    12
  35. Create appending data to existing exe file?

    Is it possible to append data to an existing executable file and have that file run correctly? I'm adding scripting features to one of our products and I wanted it so…

    Lee Jenkins, Jonas Maebe, Tomas Hajny
    3
  36. Options for enabling output buffering

    I'm tired of writing: uses Dos; ... begin TextRec(Output).FlushFunc:=nil; ... all the time in every programming contest I follow. Wouldn't it be better to provide an…

    leledumbo, Michael Van Canneyt, Tomas Hajny
    4
  37. Re: How Much of the FP/LCL is there in Indy 9/10 of Lazarus?

    Hello Has anyone used or attempted to use Indy with FPC... and if so how did you incorporate the Indy components. On Thu, Dec 11, 2008 at 12:24 PM, Mattias Gaertner <

    Prince Riley, Joost van der Sluis
    1
  38. Cannot find GTK

    Hello: I was trying with some examples about using the GTK library in the FreePascal IDE (the blue screen) and it says that this unit is missing. Despite that, I could …

    Andres Linares, leledumbo, Marco van de Voort
    9
  39. Object Pascal operating system

    Some proof of the concept: ClassiOS (http://www.petros-project.com/index.php/products/classios.html) was written in Delphi. Not an open source project, but it shows it…

    Crause, Christo (JC, Crause, Christo (JC
    6
  40. Recursive data structures using FP generics

    Last time I try (about a semester ago) the compiler cannot do specialization based on another. For instance, if we have: type generic TTree<T> = class type TChild =…

    leledumbo, Florian Klaempfl
    2
  41. Problems With IDE

    Hi all! New to the list so please bear with me :) I am having an issue where the fp.exe program fails to start under Windows Vista 32 and 64 bit. I get the same…

    Robert Wolfe
    0
  42. Re: Porting linux to pascal, would it be, possible ?

    Absolutely. Most of Unix is plain C, which translates well to Pascal. C++ is harder, of course. This is an argument only after considering the time versus the goal. Is…

    Ingemar Ragnemalm, Andrew Haines, Felipe Monteiro de Carvalho
    30
  43. Porting discussion

    To increaase compatibility to Linux it would be great if it is possible to create a keyword which it makes possible to include C-headers and then do automatically the…

    Rainer Stratmann, leledumbo, Marco van de Voort
    3
  44. Embarcadero/CodeGear officialy interested in Firebird and on native versions of Delphi for other operating systems ...

    something i just read at http://www.firebirdnews.org and in Marco Cantu's blog ( http://blog.marcocantu.com/blog/coderage_2008_closing.html ) Dimitrios Chr. Ioannidis

    Dimitrios Chr. Ioannidis, Bee, Felipe Monteiro de Carvalho
    16
  45. RTL function list?

    Is there a list of functions and which RTL libraries they belong to?

    Francisco Reyes, Felipe Monteiro de Carvalho, Julio C. Taborda
    9
  46. Wrong Time from Now() or Time()

    I have a strange problem with fpc 2.2.2 on Ubuntu Linux. The function Now(); did not return the right time ?!? It returns the time UTC - 6 hours. Any suggestions ? Alex

    Alexander Bauer, Graeme Geldenhuys, Valdas Jankūnas
    4
  47. Free Pascal Support for ARM Architecture

    Hello I have read on the wiki that FP supports ARM.. which I find very interesting.. After reading the manuals I see that FP uses the GNU tools as back-ends and they…

    Prince Riley, Aleksa Todorovic, Bernd Mueller
    25
  48. FPC 2.2.3

    Hi I am running Ubuntu kernel 2.6 64bit. and FPC 2.2 and getting errors on MYSQL opens. Lazarus people say I should install FPC 2.2.3 I tried to link into the Australian…

    Eric March, Joost van der Sluis
    1
  49. fstat usage

    Trying the fstat function and don't seem to be getting the right values for ctime, mtime and atime. -- filedate.pp uses BaseUnix,DateUtils,SysUtils; var info : stat ;…

    Francisco Reyes, Micha Nelissen, Pete Cervasio
    6
  50. setting output dir inside fpc's package tree

    I' trying again, apparently I wasn't able to make my problem clear. I want to write a Makefile.fpc for fpcmake that does the same thing as any other package inside the…

    Marc Santhoff, Jonas Maebe
    2