fpc-pascal · 2005-08
- Writeln in embedded systems2
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…
- fpc 2.0 and DOM/xml under OS/2 gives me "Process terminated by SIGSEGV"11
I have the following snippet of code (which works under Windows): PROGRAM XMLTest; USES Dom, XMLRead; PROCEDURE ProcessItem(Node: TDOMNode); VAR i: Integer; attr:…
- fpGetRUsage6
Trying to get fpGetRusage to work. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly results.…
- Windows Type LPARAM, WPARAM7
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…
- Cross compiler win32/ARM error code 2 ?1
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…
- Extended float to single and pchar types4
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…
- arbitrary number of parameters in procedure1
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:…
- set envirom variable with pascal in linux7
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…
- old code with readdir2
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…
- BMP support improved, feedback welcome.0
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…
- Re: KeyPressed0
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…
- Re: KeyPressed4
"Tomas Hajny" wrote, in part:
- Unit Graph and BGI fonts0
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…
- FEM pack in Pascal39
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…
- Problem with freevision (winxp pro sp2 english)6
-----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…
- building docs from svn1
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…
- Re: KeyPressed0
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…
- Type check for compile time expressions added0
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…
- Linking pthread?3
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
- HeapError variable access1
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…
- KeyPressed.1
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…
- 64 Bit Intel-Processors??4
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…
- Re: Linking Pascal code to C/C++ static libraries under Windows1
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…
- Array of Char2
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');…
- Re: Linking Pascal code to C/C++ static libraries under Windows1
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…
- Pascal-Compiler under Linux2
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…
- FPC in Dr Dobbs.0
Dr Dobbs august edition has a small note about FPC 2.0.0 release :-)
- Linking Pascal code to C/C++ static libraries under Windows.1
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…
- fpc and lazarus svn thru firewall0
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…
- fpdoc: Invalid short description0
When I run fpdoc on the lcl documentation, I get the following messages: [#lcl.Forms.TApplication] Invalid short description [#lcl.StdCtrls.TCheckBox] Invalid short…
- Calling a C library1
How do you call a C library or .h file from FPC in linux? Any samples? Thanks Paul
- Why doesn't the Watch show what the array exactly is?0
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…
- error msg: "Selected asm reader not supported"8
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.
- bool / boolean converting4
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…
- need info about codepages0
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…
- Re: Can a program find out how it was started?6
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…
- mmsystem unit : errors1
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:…
- fast integer multiplication and one asm questio1
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…
- fast integer multiplication12
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…
- lazarus crash at start3
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…
