fpc-pascal · 2005-09
- Graphics in Linux?12
Hi! I want to write a little program for visualizing all moves of a CNC machine on LINUX. Actually it would be more than sufficient when that what the good old "graph"…
- What is the portable approach?7
I have data that would fit an associative array if they really existed in Pascal, but while the key is a string, the values are reals [0,1]. So, I have been using a…
- Turbo Pascal/legacy data file issue.12
Has anyone come up with a set of routines for converting between Turbo Pascal's 6-byte "real" format and FPC's real number format? I am trying to use FPC to update a…
- Problem compiling new compiler3
I downloaded both the 2.1 and the 2.0 daily snapshots. When I try to compile either one I get an error : make[5]: Leaving directory…
- Output program name -o3
Hi! Is there a way to change the extension of the output executable? When compile with this example: fpc /home/me/project1.pas -oNewName.cgi The file is compiled as just…
- What should be the setting of CRIMSOM EDITOR when I use it to edit pascal0
I am a pascal user who was using CRIMSON EDITOR for editing. However, due to re-installation of CRIMSON EDITOR, the setting preference is lost. Can you tell me what…
- FPDoc question4
I have two questions regarding FPDoc; - can I find somewhere a description on topic tags?? I have searched the reference manual, but it seems it's not documented there.…
- No Hello World after updating Xcode to 2.14
I've just installed Xcode 2.1 and can no longer compile FPC using 2.0.0. For good measure, I re-installed FPC 2.0.0 and the Xcode Integration Kit, including the…
- $B or $BOOLEVAL : Complete boolean evaluation1
It says in the manual that: $B or $BOOLEVAL : Complete boolean evaluation This switch is understood by the Free Pascal compiler, but is ignored. The compiler always uses…
- [Admin] List troubles0
First, I'am sorry about the mailing list troubles the last weeks. The mailing lists where moved to a new server which caused the trouble some weeks ago. Since this mail…
- 0
- Re: Turbo Pascal/legacy data file issue.2
What I would still like to see is a "Double2Real" which goes in the opposite direction of the "Real2Double". That way, I can read the data from the existing files and…
- Porter Stemming for FPC 2.05
It's great that 2.0 is out! Unfortunately it seems to break some code I used for Porter Stemming because the code sometimes reads data from a pchar at negative indexes.…
- Extending FPDoc15
For Lazarus I have made a tool called LazDoc that attempts to integrate a documentation editing tool with the IDE. Depending on the position of the cursor on the source…
- 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:…
- Examples of FPC good practice1
I would like to point out some places where I think FPC has done an excellent job of continuing the spirit of what Pascal was and should be: a programming language which…
- Suspected Strange Error in FPC3
I have a heads up report which I have to make in this form because it's not repeatable. I am sometimes getting errors that, when I try creating sample programs to…
- Opening .dta and .key files3
I've got a big problem. I've got an old program that's written in Turbo Pascal, I don't know which version. I've only got the compiled executable (.exe file), I haven't…
- SO_RCVTIMEO3
Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := (…
- Darwin compilation3
Darwin fails make all. Checked out revision 1075. genmath.inc(1115,28) Fatal: Internal error 200507161 genmath.inc(1115,28) Fatal: Compilation aborted make[7]: ***…
- history1
In the course of trying to compile fpc docs, I compared file msg2inc.pp of svn to that of the fpc-2.0.0 source tarball. No change whatsoever had been made to the code,…
- About reset(aFile, FileNameString)4
"Official" Pascal for opening a file and associating a name with it (e.g., a disk file) goes like this: assign(aFile, FileNameString); reset(aFile); {or rewrite, etc.}…
- 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.…
- XML question0
I have a problem with empty elements (<node/>) in XML. Does anybody know how I can fill them with data?? The code I was willing to use was this: if not…
- ParamStr(0) buggy?5
at the end of ParamStr(0) there is a wrong character. A small testprogramm: <----------------------------------------------------------> Program t1; var i : longint ;…
- XMLcfg question3
I'm working with XMLcfg to do read and write to XML files. I want to extract data from the following XML file where element name is "second", how can I achieve that??…
- Reading past end of file, no error5
I am pretty sure that FPC 1.0.10 would give a runtime error when attempting to read past the end of file. E.g. program ReadPastEOF; var i: Integer; begin readln(i);…
- File dates on the FPC server1
Maybe this has no importance but some file dates are not correct on the server : ftp://ftp.freepascal.org/pub/fpc/snapshot/v20/i386-win32 File: base.i386-win32.zip 8496…
- 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…
- compiling html docs from svn8
A few weeks ago I was able to compile fpcdocs from svn with a script: SVNDIR=/usr/portage/distfiles/svn-src BUILDDIR=/home/bobb/freepascal/svn/fpcdocs rm -rf ${BUILDDIR}…
- Re: ANSI String concatenation eats Linux RAM ?1
Possible cause is memory fragmentation. Please upgrade to 2.0.0 it has a rewritten memory manager.
- Re: Re: arbitrary number of parameters in procedure1
Hi Michael, I tested your proc but it don't want to ccompile . program follows: program test; var a,b,c,d:integer; res:double; Procedure AddNums(Var Result : Double;…
- 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…
- Two-dimensional dynamic arrays in C libraries1
I need to pass two- or three-dimensional dynamic arrays to C libraries from FPC. I know this is feasible with one-dimensional arrays, by using a pointer to the array:…
- Shortstrings/ ANSIStrings1
What is the main difference between the shortstrings (256 byte) and the ANSI Strings? I mean, upon using the Strings, we have plenty of functions, manipulating the…
- 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…
- exec with many params7
in linux I can't use the exec for executing a program with more than one parameter. I tried to supply more than a parameter separeted with whitespace, but it's not…
- FindPart and wildcards0
A simple question: how do I work with wildcards and "FindPart" ("strutils" unit) function? If I use writeln(FindPart('de?','abcdefgh')); i'll got "4", but if I use…
- 1
- Diff for GTK 2.60
I made this little patch thinking that the default GTK_2_2 define directive in gtk2.pas is really obsolete looking at the current versions (2.8.x and 2.6.x).
