fpc-pascal · 2012-11
- Automatically exporting C++ API using SWIG??26
The recent thread about using C headers made me think about using C++ projects. Found that the SWIG tool converts C/C++ .h files into glue code and bindings for e.g.…
- Tests in Delphi XE3 regarding Type Helpers0
Hello together! Could someone with access to Delphi XE3 please compile and run the attached tests and provide me with the output of the test or (in case of an error)…
- problem with command line defines??4
on OS/2 eCS2 i have fpc 2.6.0 release installed... i've been working with a library and needed to create a define so that some code would be compiled that otherwise is…
- Free Pascal 2.6.2 rc117
We have placed the first release-candidate of the Free Pascal Compiler version 2.6.2 on our ftp-servers. You can help improve the upcoming 2.6.2 release by downloading…
- Change Endian of String types5
Is there a way to convert endian of a string (from little to big and vice versa) ? Ido
- Complex circular references6
Hi all Now and again, I am trying to debug complex circular references. By complex circular references I mean those which are produced by cyclic graphs of units, not…
- bootstrapping from svn5
Well, I decided to make another attempt at running from the svn fixes_2_6 branch The first problem I encountered was that I could not compile from fpc 2.4.4. It sure…
- A simple HTTP request with FPC standard units17
Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a "get" in a URL and take a string back. I imagine it…
- Errors using Extended Class Syntax2
I followed the example on the wiki page, but the compiler disallowed both of the following attempts. {$mode objfpc}{$H+} TExample1 = class private const CN_CONST =…
- "Case of" documentation1
Describing the Case statement The FPLanguageReference.pdf 10.2.2 says: The constants appearing in the various case parts must be known at compile-time, and can be of the…
- Fwd: [OFF-TOPIC] EazyRSS - A simple writer and reader for the RSS protocol1
This topic has started in FPC-Devel, but I regard more people wile can be interested. Is EazyRSS useful for anyone? Should it be included in the standard units of Free…
- Is it possible to redefine FreePascal types?7
Lets say I am using some string variables, but I want to ensure that there are no typing errors in some code I am using. so I define newString as a new string type and…
- Is there some runtime variable informs whether a program is running in a debugger or contains debugging information?0
Is there some runtime variable informs whether a program is running in a debugger or contains debugging information? Frank Church =======================…
- BSD6
Somebody's suggesting we ought to be at least 's the preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD etc.? Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk
- mobile application7
I need to identify a reliable portable device that I can program in FPC-Pascal. This device could be a smartphone or whatever you suggest. Cost is one element to keep in…
- Pathscale: alternative debugger on Linux?12
Has anybody tried the Pathscale debugger on Linux x64/FreeBSD? I haven't myself, just heard that they open sourced their compiler suite. A download page seems to be here:
- Simple CGI Application0
Dear Administrator! During the installation of the package named CGILaz.lpk on Lazarus IDE 0.9.30.4 the following report is given out: Stream=TCGIDatamodule1:…
- fpc: -vm switch8
Related to http://bugs.freepascal.org/view.php?id=23347 Using fpc 2.6.0 Does 2.6.0 handle -vm switch, and how is it used? In related bug…
- How to make class constructor body calls descendant's overriden method/property?5
Cross posted from stackoverflow: http://stackoverflow.com/questions/13431079/how-to-make-class-constructor-body-calls-descendants-overriden-method-property I'm writing…
- Seeking Information About Writing SQLite Modules0
The project I am working on may require that I write a Collation extension or module for SQLite. I am looking for some information to get me started with this using FPC.
- FPObserver Examples anywhere?8
Does anyone know of any example code for the FPObserver interface? Preferable with Collections. Thank you. Brian
- A question about generic collections - maybe...1
I am wondering what the best approach to this problem is. I have what amounts to a Tstringlist that I am attempting to use generics for typing the objects and I would…
- chr does not return an error when number bigger then byte enters1
I'ved started a crossaide against PHP (http://idkn.wordpress.com/2012/11/14/why-php-must-be-abandoned-in-my-opinion/), due to few issues it have such as chr(256) will…
- Coverity for FPC?!?2
Companies/tools like Coverity do source code analysis to find security/stability defects, mainly on C++ code, but these tools also are available for other languages.…
- Building 2.7.1 cross compiler2
Since a few weeks, I have been unable to build the 2.7.1 cross compiler (from Linux 32 bit to Win32), while the 2.6.1 cross compiler builds merrily. My OS is Ubuntu…
- OS/2 and fcl-base\syncobjs1
is fcl-base\syncobjs not ready for use with OS/2? i'm trying to work with synapse40... it doesn't have any IFDEFs for OS/2 which i'm sure are or will be needed... the…
- array of const with cdecl procedure11
I'm trying to write a shard library of my own that you can use with C as well. I'm using mode fpc, and not objfpc. I created something like this: ... procedure…
- synapse and OS/22
before i get too much further along on this project, i guess i should ask about the ssleay32 and libeay32 libraries on OS/2... i'm developing this project on windows…
- Can JCF handle Generics?2
Is there a way to have JCF deal with generics? It looks like it complains about them. eg. JCF: Exception TEParseError Unexpected token, expected ";" Near TFPGMap Thank…
- working witg UCS4Char7
I'm trying to work with UCS4Char (for this: https://github.com/ik5/fp-msgpack), but I can't figure out how to do it. For example, if do the following:…
- B-tree Filer1
I have converted b-tree filer to work on Free Pascal on Windows Xp and Windows 7. Two of the function do not work, (reorg rekey). I wrote three function that do the same…
- adding additional libraries4
when you add additional libraries to your FPC and/or Lazarus installation, how do you normally do it? where do you normally place them? i'm thinking of libraries like…
- RESTful JSON: Your thoughts about implementation8
I thought I would put this out to see what helpful information I could gather. I am in need of some JSON and HTTP functionality. I am thinking about using some pieces…
- wayland support for FPC12
It seems that many GUI toolkits are slowly starting to move to wayland (http://wayland.freedesktop.org/), that moved to v1.0 Is there anyone who currently working on…
- New fpcup version released0
(Cross-posted to lazarus & fpc mailing lists) I'm happy to announce a new binary version of Ludo Brands' and my fpcup FPC+Lazarus+packages SVN downloader/installer. New…
- Xcode17
Can somebody explain Xcode-installtion? Last version of free pascal is 2.6 and working with Xcode 3.2.6. Meanwhile last Xcode version is 4.4.1. Version 4.1 was installed…
- secure REST client?6
i'm looking at creating a REST web application client... nothing fancy... command line oriented... fire it up, it logs into the website and performs the REST queries…
- Editing resource of executable22
I have some problem. Example: I created some exec using free pascal and lazarus. It is placed on http server. User in webbrowser click download, and server should attach…
- What is the size of AnsiChar5
As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of…
- cannot make debugserver16
I am trying to get back up to speed after a couple of years away from FPC/Laz, and I hope I am not a P.I.T.A. ... I searched the mail archive, but I found nothing. I am…
- Questions About Porting Java and Extended Class Syntax Features5
I am looking into porting Java to Free Pascal. I have some confusion about how to port certain types of Java Lang Features. What is the best way to port 'private static…
- Re: weird printout of char6
Try this: (a char is only one byte, you're trying to print a multi-byte character: print multiple one-byte characters) WriteLn(#$d7, #$90); Ewald Events don't…
- Testing if exception raised in fpcUnit7
I wish to test if a method has raised an exception for a value (something that should make the test pass) or not. For example: function TestNum(ch : Char) : Byte; begin…
- FPCUnit checking Single values2
I'm trying to check Single value. I'm doing the following: a := 1.1; b := 1.1; CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); It reports an error, one of…
- Why opening a file for write fails in fpc 2.6?21
In Linux environment the following code: try USBOut := FileOpen(UsbDev,fmOpenWrite); except result := True; end; is used in a Lazarus application to get a handle to…
- Best way to transfer data between applications?21
I am familiar with the basic underlying methods available for transferring data between processes on Windows and Unix, i.e. Pipes, Shared memory, and TCP/IP - but what I…
- Cross-compiling FPC trunk to Win x64 fails using fpcup - make file problems?3
I wonder if the problems below are caused by wrong make files or problems in fpcup: (fpc trunk, Windows; fpcup compiles fpc x86+Lazarus fine, then tries an x64 cross…
- convert floating point to bcd and vice versa2
I need to convert floating point (Single and Double) to an array of bytes (BCD) and vice versa. Are there any existed implementation for it ? Ido
