Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2005-08

  1. Writeln in embedded systems

    I have been experimenting with compiling to an embedded ARM platform I succeeded in compiling with a minimum system unit. Now the ARM processor can blink with a LED. I…

    Carsten Bager, Jonas Maebe, LanceKalp
    2
  2. fpc 2.0 and DOM/xml under OS/2 gives me "Process terminated by SIGSEGV"

    I have the following snippet of code (which works under Windows): PROGRAM XMLTest; USES Dom, XMLRead; PROCEDURE ProcessItem(Node: TDOMNode); VAR i: Integer; attr:…

    Søren Ager, Florian Klaempfl, Tomas Hajny
    11
  3. fpGetRUsage

    Trying to get fpGetRusage to work. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly results.…

    Paul Davidson, Jonas Maebe, Marco van de Voort
    6
  4. Windows Type LPARAM, WPARAM

    I've been working with FPC 2.0.0 and Dev-Pas for some GUI efforts and another programmer pointed out an interesting thing, regarding the LPARAM and WPARAM types. I hope…

    Urbansound, Alain Michaud, L505
    7
  5. Cross compiler win32/ARM error code 2 ?

    just trying to build fpc (today snapshot 2.1.X) for win32 plateform and wince arm target. i get the following error message ? D:\FPC\2.1.x-src>make all OPT=-vt…

    Unknown author, Florian Klaempfl
    1
  6. Extended float to single and pchar types

    I have a stdcall reference to a c based dll. called target.dll In c the setup is ... float Get_l1_BidPriceSingle(void* p); The Pascal reference is... function…

    Urbansound, Matt Emson
    4
  7. arbitrary number of parameters in procedure

    Hi, I have not well understood the docs concerning tvarrecs. How can I create procedure which will accept arbitrary number of parameters? To demonstrate what I want:…

    Pianoman, Michael Van Canneyt
    1
  8. set envirom variable with pascal in linux

    In Bach, Perl, can do set SDL_VER=`sdl-config --version` and in enviroment has the variable SDL_VER=1.2.3 for example. echo $SDL_VER 1.2.3 But in Pascal non have the…

    mondrillo, Alain Vitry, Jeff Pohlmeyer
    7
  9. old code with readdir

    Error: Identifier not found "opendir" I have old code from freepascal older than 2.0.0, and I want to migrate to amd64 debian, but have this error, I have read in…

    mondrillo, Jeff Pohlmeyer, Marco van de Voort
    2
  10. BMP support improved, feedback welcome.

    Thanks to some excellent work from Giulio Berna, the support for BMP images in the FCL has been greatly improved (and as such should impact Lazarus) - BMP Reader…

    Michael Van Canneyt
    0
  11. Re: KeyPressed

    Thanks! That was it. I had been working on removing the video unit. I put it back in and yanked the drivers unit. Now it works. (Although I'm not sure if the…

    Lowell C. Savage
    0
  12. Re: KeyPressed

    "Tomas Hajny" wrote, in part:

    Lowell C. Savage, Eduardo, Marco van de Voort
    4
  13. Unit Graph and BGI fonts

    actually, I am just studying FPC, in order to better understand how to ride Lazarus... working with FPC 2.0.0, Lazarus 0.9.8 on win32 XP Home ed. system. During tests of…

    Tiziano - Mekar Srl -
    0
  14. FEM pack in Pascal

    I am looking for an open and free FEM (Finite Element Method) package written in Pascal. I found many written in Fortran and C/C++ but nothing in Pascal/Object Pascal. I…

    Jilani Khaldi, Alain Michaud, Anton Tichawa
    39
  15. Problem with freevision (winxp pro sp2 english)

    -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Dear Ladies and Gentleman. I am trying to compile the fv example: C:\FPC\2.0.0\examples\fv\*.pas with the following…

    Oliver Leitner, Florian Klaempfl, Marco van de Voort
    6
  16. building docs from svn

    I've copied current svn of fpc2_fixes and fpcdocs to a working directory: asterix:svn> ls -ld fpc fpcdocs drwxr-xr-x 14 root root 4096 Aug 23 16:09 fpc drwxr-xr-x 44…

    Bob Barry, Michael Van Canneyt
    1
  17. Re: KeyPressed

    Thanks for the replies Michael, Eduardo, and Martin! It looks like I'll have to see what functions are being called to use the Video and Drivers units and see what I can…

    Lowell C. Savage
    0
  18. Type check for compile time expressions added

    Type checking of compile time expression has been added to Free Pascal Compile time expression are used in $IF/$IFC, and under mode MacPas, in $SETC This should…

    Olle Raab
    0
  19. Linking pthread?

    Hi When I compile an application that uses libc under Linux I get: "/usr/bin/ld: cannot find -lpthread" From what I gather pthread is a standard library. How do I get the

    David Butler, Anton Tichawa, L505
    3
  20. HeapError variable access

    I'm working with a unit someone developed for FPC in 2001. Compiling under FPC 2.0.0, I'm getting the following error... wErrors0.pp(279,23) Error: Identifier not found…

    Urbansound, Peter Vreman
    1
  21. KeyPressed.

    I've got a weird one for the experts here. I'm running an old DOS (originally compiled with TP) Pascal program that uses the CRT unit. It has several places where it…

    Lowell C. Savage, Tomas Hajny
    1
  22. 64 Bit Intel-Processors??

    I'm writing a little article about Pascal-Development under Linux. My question: Am I right that FPC will not work on Intels 64-Bit-Processors??? I just found something…

    Thomas Zastrow, Marco van de Voort, Nikolay Nikolov
    4
  23. Re: Linking Pascal code to C/C++ static libraries under Windows

    I would also have thought that with all the object formats that GCC emits, that one of them would be the object format used by VC, in which case using VC's linker would…

    Lowell C. Savage, Tomas Hajny
    1
  24. Array of Char

    We are moving from another Pascal compiler where this is allowed. ---------------------- Type txt_typ=packed array[0..1] of char; Const txt1:txt_typ=('12');…

    Carsten Bager, John Coppens
    2
  25. Re: Linking Pascal code to C/C++ static libraries under Windows

    Marco, replying to me, wrote in part: I can only do that for a small part (the wrapper C code that I wrote). The main libraries were done by another company and they…

    Lowell C. Savage, Tomas Hajny
    1
  26. Pascal-Compiler under Linux

    I try to write a little article about Pascal-programming under Linux. As I now, Kylix, FPC and the GNU Pascal Compiler can be used to develope Pascal-applications under…

    Thomas Zastrow, Klaus Hartnegg, Marco van de Voort
    2
  27. FPC in Dr Dobbs.

    Dr Dobbs august edition has a small note about FPC 2.0.0 release :-)

    Marco van de Voort
    0
  28. Linking Pascal code to C/C++ static libraries under Windows.

    Background: I have an old DOS console program that I'm trying to resurrect to run on Windows XP. There isn't much about the structure of the program that I need (or…

    Lowell C. Savage, Marco van de Voort
    1
  29. fpc and lazarus svn thru firewall

    My ISP uses a proxy firewall, and SVN will not work thru it or around it. Requests for the proxy to accomodate subversion have brought no action. I finally found tips…

    Bob Barry
    0
  30. fpdoc: Invalid short description

    When I run fpdoc on the lcl documentation, I get the following messages: [#lcl.Forms.TApplication] Invalid short description [#lcl.StdCtrls.TCheckBox] Invalid short…

    Vincent Snijders
    0
  31. Calling a C library

    How do you call a C library or .h file from FPC in linux? Any samples? Thanks Paul

    Paul Aviles, Alain Michaud
    1
  32. Why doesn't the Watch show what the array exactly is?

    Why doesn't the Watch show what the array exactly is? I assigned an array arr:array [1..3,1..3] of 0..1; then did such lines as below: fillchar(arr,sizeof(arr),0); {I…

    Z.Zhang
    0
  33. error msg: "Selected asm reader not supported"

    hi Using the current compiler from svn, i get the following message when trying to compile "tcl80.pas". This also happens when i try to compile other code using asm code.

    Bartek, Florian Klaempfl, Jonas Maebe
    8
  34. bool / boolean converting

    first, sorry my bad english. I have post this and the next two questions already in community (german language forum). So far I could see it in the FPC sources, BOOL is…

    Peter J. Haas, Arturo Gonzalez Rivera, Peter Vreman
    4
  35. need info about codepages

    Dear, Sirs. Please,describe using -Fc<x> and -Fr<y> compiler command line switches in depth. I need russian code for sources and russian compiler messages under win32…

    Andriy Bench
    0
  36. Re: Can a program find out how it was started?

    said: One trivial solution is to drop a readline at the end of the help routine. That way the cmd window stays open until they hit enter (which you should tell them to…

    Moz, Jeff Miller, Jeff Pohlmeyer
    6
  37. mmsystem unit : errors

    Could someone help to understand what happens with this piece of code : When I call the following function, I very very often receive an error :MCIERR_PARAM_OVERFLOW:…

    Jean-Marc Chourot, Michael Van Canneyt
    1
  38. fast integer multiplication and one asm questio

    Hi, the UI32x32To64 function is great but is amazingly short. How can I Specify which varriables in function will be accessed. In this function for example it accesses a…

    Pianoman, Gerhard Scholz
    1
  39. fast integer multiplication

    Suppose I have the following code: var a,b: dword; c: qword; begin a := 10000000; b := 20000000; c := a * b; writeln(c); end. Now, although c is large enough to contain…

    Vincent Snijders, Florian Klaempfl, Gerhard Scholz
    12
  40. lazarus crash at start

    Trying to find why lazarus crashes at start in win98 I found a courious problem, global variable IsConsole is true when it should be false as lazarus is built as a gui…

    Jesus Reyes, Peter Vreman, Vincent Snijders
    3