fpc-pascal · 2012-02
- xterm -e program-compiled-with-fpc2.4.0 doesn't work12
With the advent of Debian6 fpc 2.4.0-2 has become the only available version. Before that, it may have been 1.0 ? A simple program of mine compiled in 2008 with the old…
- How create a full text search with TChmWriter?23
I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch to true, it…
- OT: Amazing new development tools19
I found the following amazing lecture that present a new idea of a development tool, that I think will interest you all: http://vimeo.com/36579366 Enjoy Ido
- Weird compilation warnings2
FPC is returning the "Warning: cdecl’ared functions have no high parameter" but I have no idea why. The documentation just says "Functions declared with the cdecl…
- Where and how is the FPC documentation created?25
A few months ago I inquired and got some info about FPC docs - discussed in this thread http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068595.html,…
- What is the most widely used Pascal on Linux and other Unix variants?24
What is the most widely used Pascal on Linux and other Unix variants? Is it Free Pascal? Frank Church ======================= http://devblog.brahmancreations.com
- Any way to find all descendants of a class?1
In Delphi I can use the new extended RTTI support to build a list of all TForm descendants in my application (TRttiContext.GetTypes). Is there any way to do the same…
- Class const of array of record.14
I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class…
- Linking message "...did you forget -T?"5
I've been meaning to ask this question since many months ago. Why do I get that "..... did you forget -T?" whenever I compile any project. It never used to be there…
- FPC with case insensitive file system under Linux27
[rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Google'ing a round for the reason for this, it seems that in the 60's, it was C…
- fpweb and security2
I'm thinking now to use fpweb for a web application I need to build, but the application is going to be over the internet, and I'm interesting in knowing about few…
- Data persistance in CGI projects6
For desktop environments, there are mature projects on data persistance. Press Objects, TiOPF... desktop developers can be proud of the tools they have. What about CGI…
- does the following translation of a c struct to FPC is correct ?5
I translated the following struct struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD) version:4; #elif defined (__BIG_ENDIAN_BITFIELD) ihl:4; #else #error "Please fix…
- dynamic array as a part of dynamically allocated records behavior3
Consider the following program: {$mode objfpc} type TJam = array of Integer; TRuang = record nm_ruang: string; avl: TJam; end; PRuang = ^TRuang; var x: array of integer;…
- (no subject)8
Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class? Everton Vieira.
- dbus in Pascal4
I haven't touched in dbus in ages, so I was wondering how people are using it. Did anyone write a wrapper around libdbus for Lazarus or is everyone using directly…
- fpdoc slow on Linux x64... tweaking?3
Running fpcup on Linux x86, Linux x64 with FPC fixes_2_6 Building LCL chm docs with build_lcl_docs, which calls fpdoc: On x86, seems to works ok. On x64, takes a long…
- Int64 multiplication error0
Hello I have a problem with int64 multiplication: program tstint64; {$MODE objfpc} {$H+} uses SysUtils; var i: integer; y: int64; begin y := 1; for i := 1 to 10 do begin…
- level curve and surface generation code3
I was wondering if anyone has seen Pascal code around for these two tasks 1> generate level curves from an array of 3D points 2> Generate a 3D surface from an array of…
- Outputting a set for debugging2
What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred…
- Logging full runtime-error/exception backtrace21
I want to log the full runtime-error/exception backtrace to a file. I've tried all methods explained http://wiki.lazarus.freepascal.org/Logging_exceptions here but none…
- Reactor Pattern for Pascal ?0
I'm looking for an open source based implementation (but not limiting for commercial usage) of Reactor Pattern (http://en.wikipedia.org/wiki/Reactor_pattern) to have…
- Easy way to install FPC 2.6.x on Mint Linux?11
I am lazy and want to find the easiest way to install FPC 2.6.x on Mint Linux, which is compatible with Ubuntu. Has anyone made a repository which can be used with…
- AsyncCalls no longer works with Free Pascal?0
I just wanted to try AsyncCalls and downloaded the most recent version 2.99. But when compiling a project that uses it I get an error 'Your compiler version is not…
- Test0
Please, ignore.
- FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released31
With the help of the people on the forums and the lists, I've completed the first version of FPCup, a tool that downloads FPC and Lazarus sources from SVN, compiles and…
- Exception withing exception handling3
I am in the process or writing a interpreter for a specific task (not turing complete, just something to make easier to express something to the computer) and for the…
- TMSSQLConnection - sqlDB component for accessing MS SQL Server0
As you can see here http://bugs.freepascal.org/view.php?id=17303 the developer known to LacaK developed a new connector for MSSQLServer, descendant of TSQLConnection…
- fphttpclient get an url with colon9
When I use TFPHTTPClient to fetch a page with a colon in the file name it appends a slash "/". For example: Client:=TFPHTTPClient.Create(nil);…
- benchmarking functions4
What is the best way measure execution time of functions ? Ido
- looking for binary of 2.2.06
Is there a binary of 2.2.0 for i386 Linux still available anywhere? I'm having difficulty compiling it from source (possible problem in 2.2.4) and need it to investigate…
- make clean / distclean leaves some ppu files0
It seems make clean leaves ppu files behind: For example: ./packages/fpmkunit/units_bs/x86_64-linux/zbase.ppu Mattias
- TLinkedList28
If my memory is not misleading me, there was once a TLinkedList class under Classes unit, but I can't find any documentation on it. I found an include file that contains…
- Generics Compile Error, 2.4.2 vs 2.6.02
Under FPC 2.4.2 I have been using RBTree unit that uses generics. With 2.6.0 it fails to compile. I know that there have been changes for 2.6.0 but I have checked the…
- fpdoc and tab characters1
How are tab characters handled by fpdoc and its output formats? Mattias
- Adding Notes in FPDoc3
Seeing the discussions about annotating the documentation created by FPDoc, I added support for notes. (revision 20304) In short: At the level of the <module>, <topic>…
- Working Free Pascal android JNI example42
I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…
- TSqlite3Dataset and Attach Database1
Can anyone tell me if it is possible to attach another database file to a TSQlite3Dataset before opening a query. I've tried using 'ATTACH "<filename>" AS dataDB;' as…
- Problems with moving/renaming file using sysutils.renamefile9
Free Pascal Compiler version 2.6.0-1 [2012/01/13] for i386 Linux x86 Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable…
- AIX1
Hi, can freepascal compile programs for AIX PowerPc? I see hints of AIX when I search google but nothing that directly says it will work. Thanks Andrew
- fpc 2.6.0-rc1 for arm-embedded25
I had some problems making or using a compiler for arm-embedded so I tried the new 2.6.0-rc1. Compiling with : make clean buildbase installbase CROSSINSTALL=1…
- [admin] problems with mail delivery?0
I've received mails from two people the last couple of weeks that not all messages they sent (from subscribed addresses) went through to the FPC mailing lists. In order…
- Pass array of record as parameter19
TInfo=record s: string; i: integer; end; function func1(a: array of TInfo); how can i pass the parameter to that function? for example, i cant do that? func1([('test1',…
- tzipper issue(zipper.pp)1
I am trying to port a Delphi app to Freepascal/Lazarus. The original app zipped the contents of a memo(using vclzip) which was saved to a stream, and the zip does not…
- Code works on Linux x64 but not on Linux x866
I have the following code, adapted from pasbzip.pas (bzip2 example) uses ...bzip2.. const BufferSize = 4096; var infile, outfile: Tbufstream; decoder:…
- FPCDocs: diff: saving fpdoc gives huge diff12
fpdocs Revision 889 svn revert --recursive . Open FPDocEditor on ExpandFileName, type a space somewhere, click Save icon. (Space seems to be automatically removed) This…
- What ARM targets are supported by FPC?11
I'm pretty out of the loop when it comes to embedded or small form factor devices. There seems to be so many different embedded processors and multiple versions of ARM…
- TFPHTTPClient Post works with jetty, fails with tomcat9
For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty". "curl" works fine with both, so I guess the…
- Dynamic array and dimensions1
I need to rewrite the way I split data today, after I found out that the specs and the reality of the content are different things. At the moment I'm using a dynamic…
- How to ? Using two compiler versions.5
I'm searching for some document how to set up a system to use two versions of fpc. I'm trying to make a working arm-embedded compiler. With 2.6.0 I seem unable to do…
