fpc-pascal
Subscribe to this list Your subscription
Latest threads
- constructor as procvar8
I'd like to pass a constructor as a procvar. Don't know if this is possible. Here is some silly illustrative code that doesn't work: {$mode objfpc} uses classes,…
- When is AnsiString not a good substitute for string?4
I recently posted a question about problems involving the use of string and AnsiString when converting a Delphi program. Are the some situations where substituting…
- Strange WinCE Bug5
Who maintains the wince port and the arm port? Some users are experiencing a very wierd bug in wince-arm which happens in pure lcl app or kol app + lnet (no idea what…
- Fwd: [ANNOUNCEMENT] GDB 7.1 released!2
Begin forwarded message:
- New wiki, ftp and mailing list server planned9
As you might have noticed, the server running the wiki (lazarus and fpc), the mailing lists (lazarus and fpc) and being ftp master (fpc and lazarus snapshots) had some…
- tstringlist.savetostream6
After running tstringlist.savetostream how can I make sure that the buffer has been flushed and data sent successfully? Thx
- Versions x.x.1, x.x.3, x.x.5 are development versions? or are bug fixes?4
Versions x.x.1, x.x.3, x.x.5 are development versions? or are bug fixes? Ex.: 2.4.1
- Re: Is it save to think default value of untouched string is ''?1
But ShortStrings also store the length in string[0]. If I do a append, I think the string will append to string[1].... So don't assume string are always initialized with…
- error on compilation2
When I try to compile on my laptop (fedora on a AMD64) with fp I get: fatal: Can't find unit system used by pruebacomentarios What's wrong here? Martín Marqués select…
- Error: Illegal qualifier in converting Delphi unit4
I am trying to compile the TVersionInfo component by Anders Melander at http://melander.dk/articles/versioninfo/. It defines the structure below type TTranslationRec =…
- including libraies ?1
I tried to write a little utility to submit a command to code to do this is as follows: program TestPrg; Uses Classes, Process; Var i: Integer; Cmd, Pre, Post,…
- modulo of negative dividend2
I'm checking the mod binary operator, and I found out that if the dividend is negative, it gives a negative result. AFAIK, mod gives an integer between 0 and d-1, where…
- Floating point miscalculations on PowerPC1
I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's running under Rosetta on an Intel Mac. Simple floating point operations like this result in wrong…
- when cross-compiling, "Recompiling ..., checksum changed for ..."7
i use cross-compiling from win32 to (target)linux... and get this error; "Recompiling BaseUnix, checksum changed for System" *** i read this doc:…
- Re: properties with getter evaluation in gdb0
After that patch any field anywhere in GDB's Pascal mode becomes case sensitive (and because FPC stores all identifiers in uppercase, that means you have to use…
- syntax of deprecated / with/without semicolon ?0
All I got is http://www.freepascal.org/docs-html/ref/refse5.html it gives this example: So deprecated after a variable, or constant, does NOT have a semicolon. Indeed…
- Compiling for 64-bit Mac1
I've installed FPC from the fpc-2.4.0.intel-macosx.dmg package on SourceForge, and I'm trying to compile code into a 64-bit program. I can't find the command-line option…
- -Twin32 linker woes9
I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib xxx.dll} says error: 1: Import library not found…
- FPC Docs updated11
The documentation has been re-generated and put on the website. the fpc/dist/2.4.0/docs directory on the FTP server contains also a version of the latest docs. They have…
- Re: Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.2
Jonas, you are my hero. This was exactly the problem. After adding " SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);…
- Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.1
Hi If I use Pa_IsFormatSupported from portaudio with a different sample rate than the default, I get a division by zero error or other arithmetic error. However, it…
- Is it save to think default value of untouched string is ''?8
I have a a program that will read a string and parse the string to some sub-strings in sub routine. I add every character to a local string buffer in sub routine. The…
- Smartlinking public functions4
Hello Developers The system expects an application to implement (export) some functions that are to be linked statically. I'm using [public] modifier: function someFunc:…
- Linking statically C code with stdcall functions13
I'm trying to link my program statically with bzip2 library under Win32. The exported functions are declared as stdcall. I can link dynamically by declaring functions…
- gdb, dwarf, and ansistring5
Given the following example: ---------------------------------------- program project1; {$mode objfpc}{$H+} procedure doit (var s : ansistring); begin s := s + ' ' + s;…
- installing on RHEL5 (libtinfo)6
I'm running CentOS 5.3 (x86_64), and want to install FPC 2.4 on my machine, preferably from an RPM, but I can't because of a failed dependency on libtinfo. I've found…
- Determining procedure's name3
Is there a macro or function that gives the current procedure's name? E.g. procedure TClass.SomeProc; begin writeln(Format('This procedure's name is %s', [THE_MACRO]));…
- Serial port parity...1
Is there eny chance to handle the parity bit for serial port communication? I am using a 9 bit communication with a device and I need to control the 9th bit. I tried…
- floating point an FPC9
I've made a small test: if (0.1+0.2) = 0.3 then The only compiler/interpator that actually tells that it equal is FPC. I've tested it using Javascript (in Firefox),…
- Which regex unit to use?3
There are a few regex units include with FPC and Lazarus, and dozens more available for Delphi (and probably FPC too). Which one is the most well known, or best to use,…
