fpc-pascal · 2015-03
- How do you build FPC?14
I'm using i386 32bit Linux for most of my development and currently using FPC 2.6.0. I'm trying to understand how to build FPC for various scenarios: Cross-compiling FPC…
- Does a single cross compiler for a CPU used for all operating systems?5
Does a single cross compiler for a CPU used for all operating systems? eg ppcross386 is the cross compiler for i386. Is it the same compiler that would be used whether…
- Floor, Ceil and Int642
Floor and Ceil (math unit) only return integers. Should there be an overloaded one for Int64 as well? B = 11111111111.111100000000000 Trunc(B) =…
- Do the make commands have a way of listing the options and possible values for them?5
The ./configure command used by a lot of unix programs can list the options and possible values for them. Do the make commands for Lazarus and FPC have such an option?…
- EAccessViolation on wrong exception re-raise: intended behavior?3
Consider the following program: {$mode objfpc} uses sysutils; begin try try raise exception.create('test'); except on e: exception do begin e.message := 'tset'; raise e;…
- Looking for JavaScript component on FPC22
I am trying to integrate javascript for back-end support of cloud apps. I noticed the fcl-js package. Does anyone have an idea when we can expect to have a component…
- 0
- Which programs or packages do I need to cross compile for 64bit Linux on 32 bit Linux?1
When I do 'make crossinstall OS_TARGET=linux CPU_TARGET=x86_64 INSTALL_PREFIX=$THIS_BUILD_DIR/fpc' on 32 bit Linux I get this error : 'x86_64-linux-as: Command not…
- Exceptions in Library2
Would anybody be able to enlighten me on enabling exception trapping in Linux libraries ? As far as I can tell, exceptions propagate through to the main app - (written…
- Re Raise Exception0
I'm having problems with an application on a client with random A/V's. In order to understand what is going on, I wrote a simple web service client for my mantis tracker…
- Does the basic make INSTALL create ppcross3863
At some stage in the make INSTALL the installation stops with this message. /usr/bin/install -c -m 755 ppcross386…
- fpHttpClient and Https support ?7
Hello. First of all, congratulation for fpHttpClient.pas. It works directly, like charms, without to install any dependencies. => wow. I am able to do internet audio…
- Suggestion: TDataSetEnumerator10
What do you think about a TDataSetEnumerator class in the DB unit? Something like this: === begin code === TDataSetEnumerator = class private FPosition: Integer;…
- getaddrinfo4
I'm working on an cross-platform application with DNS resolution with IPv6 support, but I can't really get around how should I handle IP version independent DNS…
- How to work with reference-counted strings in dynamically created objects2
The following program, compiles and runs as expected using a shortstring declaration in the TExample record. Could someone explain how to adapt it to cope with a…
- File Descriptor in Windows ?23
Hello. In Unix systems File Descriptor can be created with fpPipe(FDInput, FDOutput). Then FDInput/FDOutput may be used as file descriptors. Ok, perfect. But fpPipe is…
- Writing a Console App in FreePascal that connects to MySQL1
I was trying to see how to write a Console Appication in FreePascal that will connect to MySQL. I know how to do this in c, but thought it would be interesting to be…
- TProcess does not work in Windows XP15
I know XP is an old OS but some customers of mine still have it ! I'm writing a little software which is calling a console program and I have the need to capture its…
- Free Pascal and Lazarus Nightly Builds10
This is a public notice. Get Lazarus has switched from hosting arbitrary revisions to hosting setup programs from nightly builds. http://www.getlazarus.org/setup/ Going…
- Helpers for objects (not classes)3
Do the new class helpers support objects? If this is not implemented how much work (1-10) is it to do? Andrew
- Mode Delphi and functions as parameters.8
I have recently compiled projects which were converted from Delphi and it seems to me that the passing a function as a parameter does not require the '@' symbol. I…
- Portable coroutines6
Efficient implementation of coroutines requires CPU-specific code in the RTL and possibly the compiler. However…
- Where is the 'write' function defined and how is it different from 'writeln'?11
Where is the 'write' function defined and how is it different from 'writeln'? I can see a lot of fpc_writeXXX and other xxxxWrite functions, but no 'write' itself Frank…
- SVN Protocolo implementation1
I would like to know if there is a OP implementation of SVN Protocol. I know there is a LazSvnPkg but it is basde on TProcess and communication with SVN bin. This would…
- Common class type1
Hi. Is there method in fpc to find the highest common class-type of two derived classes? Torsten Bonde Christiansen.
- Thoughts on Shell Approach to TCP Sockets10
Despite documentation and manuals, I have not figured out how to use TCP sockets in Object Pascal, since there doesn't seem to be a primitive for it, or any easy way to…
- PtrInt - possible candidate to be marked as deprecated12
Based on what the documentation says "introduction of ptrint type was a mistake", shouldn't the PtrInt type be marked as deprecated in FPC 3.0.0 and removed in a later…
- Internet audio streaming ?3
Hello. I have some problem with audio internet streaming. I would like to do it with mpg123 + portaudio libraries but... Here is the procedure used by mpg123 =>…
- FPCUnit - parallel test suite execution16
As per good unit test guidelines, tests should be independent of each other and not rely on results from earlier tests. The perfect candidate for parallelism. So what…
- Saving and reading TBlowfish crypted text5
I need to encrypt TMemo.Lines and to write it to a file. Then, of course, I need the contrary operation I mean reading encrypted text on file, decrypt it to put into…
- fgl.TFPGMap / operator not overloaded for object types7
Hi all I am wondering if somebody created a bug request for the problem described in http://lists.freepascal.org/fpc-pascal/2011-January/028020.html ? If not I'd like…
- how to use signals in freepascal?11
I have some questions regarding event and signals: 1) RTLEventWaitFor can a program waiting for an RTLEvent be notified by an RTLEventSet from ANOTHER process? 2) Unix…
- Google Code closing down21
If you haven't seen yet, Google announced that they will be closing down Google Code. My only concern is that some niche projects used it and that such code could be…
- THashedStringList.IndexOfName returns bogus value for empty string0
Hi fpc experts. I've just discovered that THashedStringList.IndexOfName often return a bogus value instead of the expected -1 when the parameter passed is an empty…
- Is the current stable release of FPC 2.6.4 or 3.0.1?2
Is the current stable release FPC 2.6.4 or 3.0.1? Is it actually 3.0.1? When I check this site - http://svn.freepascal.org/cgi-bin/viewvc.cgi/tags/ the last tag is…
- What is already Unicode enabled in 3.1.1?2
Is there some FPC unicode wiki roadmap / status page? Something like Lazarus has for it's widgetsets [http://wiki.freepascal.org/Roadmap] For many years now the tiOPF…
- Help with Delphi ASM translation to FPC2
Could somebody confirm if the Delphi ASM does the same as the FPC code? This code is used in a unit testing framework to help report the exact location of where an error…
- Warning "Local variable seems to be not initialized" on dyn array25
I get a warning that a local dynamic array variable is not initialized. Aren't such managed types initialized by default? On http://wiki.freepascal.org/Dynamic_array it…
- fpdoc to use custom CSS file for HTML output4
Why is the --css-file option limited to the CHM output? Why can't I specify it for the HTML output too? Alternatively, how do I tell fpdoc not to use the default…
- JVM2
I tried to build ppcjvm and failed. I followed the wiki instructions: http://wiki.freepascal.org/FPC_JVM/Building fpcmake of 3.1.1 is in PATH. make CROSSOPT="-O2 -g"…
- how to use procedure of object in C8
I define a procedure like this: type TDataHandler = procedure(data: Pointer) of object; procedure SetHandler(h: TDataHandler); external cdecl; Now, can I implement…
- FPDoc an deprecated functions1
Is the <version> tag the only way to mark methods or functions deprecated in the documentation? I've just tried the latest fpdoc from trunk and it doesn't seem to show…
- fpGetTimeOfDay4
Are there any known issues with this sort of thing fpGetTimeOfDay (@TimeVal, nil) on various platforms? FPC 2.6.4 and 2.7.1 seem to be OK on x86, but on x64 (and FWIW…
- License terms for FastHTMLParser2
While reading up on the history of FastHTMLParser (to find out who/where the root owner of this unit is) I noticed that the last release (0.4) from Jazarsoft…
- FPC embedded ?17
Curious to know hands-on experience of list-members with FreePascal embedded. Arduino <http://arduino.cc/> looks quite attractive to me, but it's not Pascal. Any…
- Base36 encoding0
Hello all. I need a couple of base36 (https://en.wikipedia.org/wiki/Base_36) encoding/decoding functions with the following or similar signatures: function…
- fpGUI - UI Designer - place own components ?3
yesterday I tried fpGUI the first time - I only compiled the examples just to see how it looks. Now I "google and google" for an answer to the question, how to make…
- [Windows] FileGetAttr reports faHidden on e.g. C:\1
Kind of off-topic. While working on Lazarus' TShellTreeView component, it was brought to my attention that FileGetAttr('C:\') returns an attribute that has faHidden in…
- AddTerminateProc leak?1
The test: === begin code === program project1; uses SysUtils; function _Finalize: boolean; begin WriteLn('END'); Result := True; end; begin WriteLn('START');…
- Linux x64 linking error (FPC_ABSMASK_SINGLE)3
Hi! I have a (very) huge project, and compilation of a shared library inside it fails at the linking stage: /usr/bin/ld: </long/directory/file.o>: relocation…
