fpc-pascal · 2014-03
- Free Pascal console programs on Android are easy15
http://turbocontrol.com/gnuroot.htm is a new (unpublished) web page. Feedback appreciated!
- Free pascal candidate for project of the month7
FYI: Free Pascal is candidate for SF project of the month april, up against strong candidates as subversion for windows (the server, not tortoise) and smplayer. Note…
- Access fpc libraries with Java ?21
Hello. I try to access fpc libraries with Java. I can access those libraries with: => Python without problems, even callback functions... => fpc programs, of course...…
- FPC 2.6.4 for GO3212
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing. Always I get "No debugger support available". Thank you for your help. Lubomir…
- Enumeration type: FreePascal Vs. Delphi0
A project of mine was forked and adapted to Delphi by a programmer. Now we're working to join both branches. He did change the enumerations, he did use "=" instead of…
- Compiler and RTL unit tests2
A while back I read about how the Delphi community would like the internal Embarcadero unit tests (if they actually exist) be made public. As usual, Embarcadero didn't…
- Some articles on Lazarus/Free Pascal.6
Since many years I have been writing articles about Object Pascal (both in Delphi/Kylix and FPC/Lazarus), as well as some other things. These articles were published -…
- Only test0
Hi. Please discarcd. Just to check that I'm connected again. Antonio --- Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la…
- reference counting of multi-dimensional array1
If I have this: var a2: array of array of Integer; i, j: Integer; begin SetLength(a2, 3); for i := 0 to 2 do begin SetLength(a[i], 3); for j := 0 to 2 do a[i][j] := 1;…
- function mapping to array?1
Is the following possible: type TFunc=function(x: Double): Double; procedure apply(f: TFunc; var x: array of Double); var i: Integer; begin for i := 0 to Length(x) - 1…
- fpc in symlinked directory44
When I start fpc in a directory containing symlinks the compiler uses the resolved directory, leading to wrong source file names. For example: /tmp/orig/project1.pas…
- Error compile library on Linux.16
Hello. After successfully translate a useful unit into a universal library, i want to do the same with something bigger. I have compile that unit into a Windows library.…
- fpmake dependecies3
I'm playing again with fpmake and I struck an issue with it. Probably due to a wrong setup of my packages, but I cannot find a way to resolve it. I keep on getting the…
- Two "double" related question1
I am trying to convert an R program to pascal. Having 2 problems: 1. In R, ln(0) is -Inf (negative infinity) and ln(-1) is NaN, while in FPC (2.6.2), ln(0) is NaN, and…
- executeprocess help0
This enables a process eg an .exe to be run without using cmd (unlike exec) and if so, I'd like to use it. Can anyone provide one or two simple example lines for using…
- TSQLQuery.ApplyUpdates problem with UTF-815
Is TSQLQuery.AppleUpdate works with UTF8 string field content? I fetched a web page and extracted part of its content and appended it into TSQLQuery record's string…
- XMLWrite looses data4
I'm loading up a XSL file into a TXMLDocument using XMLRead. Up to this point everything seems to be ok, and I can query the DOMNodes without problem. If I then save…
- [ANN] Travel Lazarus Brook | REST | JSON0
[ANN] Travel Lazarus Brook | REST | JSON. It is with great pleasure that I bring this news to you. Received from a friend:…
- Bug in enumerators 2.6.411
Hi List. I think i have found a bug related to enumerators, overridden methods and forward declared classes. Please consider the code listed here:…
- struct definition in C8
What would be the equivalent of the following struct definition in C? typedef struct MyStruct { unsigned a :6; unsigned b :15; unsigned c:11; }MyStruct; I imagine this…
- fppoll/epoll examples/documentation2
This may seem crazy, but I cannot find any documentation or examples on fppoll( ) and the events member of TFdPoll structure. ALso, there is a epoll .*freepascal*.org…
- Ipc, start new process, shared memory0
Are there code snippets for starting a new process in the background and then communicate with that process via shared memory?
- Lazarus better than delphi6
I have been using Delphi 7 forever. I evaluated Delphi xe5 Update 2. Today, I use Lazarus 1.2 and FPC 2.6.2. Lazarus/FPC is just better than Delphi. All development on…
- THandle in code that must compile also with Delphi7
FileCreate and FileOpen return THandle with FPC but integer with Delphi2007. Delphi defines THandle as LongWord but for some reason Integer is used instead. With FPC on…
- Linking object file4
I was wondering if it's possible to link FPC object files by using the $Link directive? At least I have troubles in getting this to work and therefore I'm asking here.…
- Cloning objects?4
Is there a drop-dead simple way to clone an object? I've got a small tree of classes (tBaseProfile, and four descendants of such). Only the descendant classes are…
- Searching Text Files3
I'm writing a little personal program in Lazarus that manages pdf files. One of the things I want to do is search for text/phrases within the pdfs. Has anybody tried to…
- Dynamic array initialization1
Hello list! Are dynamic arrays initialized with nil after the setlength call? Doc[1] doesn't say a word about that and my tests say yes, they are initialized with nil.…
- RTL debuginfo on GDB 7.4+ and OSX Mavericks5
Hello list. I've just upgraded to OSX Mavericks. GDB is no longer installed with xcode5 so I downloaded, compiled and installed GDB 7.6.2 myself. I can debug my own…
- Library.StringFunction() : PChar => NO14
Hello great fpc people. It is about functions dealing with string inside a library... If i use that kind of function inside the library : It will be the memory manager…
- dynamic array reference count4
I just want to confirm one thing: var a, b: array of Integer; begin SetLength(a, 100); SetLength(b, 100); a := b; end. Now "a" will point to the same memory block as…
- nested inline3
Is nested inline allowed? i.e. will the compiler generate inlined code for the following source: procedure a; inline; begin end; procedure b; inline; begin a; end; if I…
- procedure modifiers1
I wonder where should I put procedure modifiers, in the interface section, or implementation section, or both? e.g. interface function test(data: Integer): Integer;…
- Installer (2.6.4 win32) and path issues5
I installed 2.6.4 for win32. I removed the 2.6.4rc1 installation. After that I wanted to rebuild Lazarus, so I did a "make clean all" in Lazarus dir, but got only errors.
- TProcess on windows: incompatibility between poUsePipes and InheritHandles:=false4
In order to use poUsePipes, InheritHandles must be true (see http://msdn.microsoft.com/en-us/library/windows/desktop/ms686331%28v=vs.85%29.aspx) This is a limitation of…
- Elegant way to switch sort mechanism in TSortedCollection?11
I'm working on a project that utilizes a TSortedCollection to help keep items sorted during processing. There is a need to re-sort the collection by different criteria…
- Request for help0
I'm helping the editor of Blaise Pascal magazine to develop some components for Lazarus & Delphi (for the Leap Motion). We need someone with experience in 3D-rendering…
- $LINKLIB MSVCRT on windows/osx11
Hey: Has anybody got a clue how to statically link the windows c run time with lazarus/freepascal on Windows 7/8 x32 or x64? , there are all sorts of references to…
- FPC 2.6.4 release!2
Finally, FPC 2.6.4 has landed. FPC 2.6.4 is an update to 2.6.2 and 2.6.0 that contains most library progress over the 2.6.2. It will probably conclude the 2.6.x branch.…
- Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken11
Now that OSX Mavericks 10.9 is running full speed, it has broken the {$LINKLIB gcc} compiler directive. {$LINKLIB c} still WORKS. But {$LINKLIB gcc} does not. The reason…
- FPC for ARMv45
Hi I have a board running Linux - it reports itself as armv4tl: uname -a Linux phidgetsbc 3.1.6 #3 PREEMPT Fri Jan 6 13:05:50 MST 2012 armv4tl GNU/Linux cat /etc/issue…
- Shared memory on various OSes2
When a DLL/so is loaded dynamically by multiple program instances, are globals shared or would this require explicit use of OS-level shared memory? The application is…
- Mantis maintenance0
Not sure, if Mantis is maintained by FPC or Lazarus team (or actually either. I've provided a plugin for it to preserve backtrace formatting.…
- DBF components are maintained now3
Just wanted to let you know about http://wiki.lazarus.freepascal.org/User_Changes_Trunk#TDBF_unit_deprecation_removed Currently I'm adding test cases to dbtestframework…
- (no subject)3
Hello, guys! Firstly, thank you for such a great project! It's very nice to use it in a study process in a school/university. And now a question :) I have some trouble…
- For Slackware users0
I wrote some scripts to convert FPC & Lazarus binaries to Slackware packages. If you're interested you can find them to…
- Mirror empty5
The fpc mirror http://www.hu.freepascal.org/ is empty. Who is responsible for it? Mattias
- Generic String Functions29
What is the relation between Generic Functions and (static) DXE String encoding schemes ? Can you (e.g.) do a (silly) Generic Function that takes two strings of any (but…
- Lazarus 1.2 Release0
The Lazarus team is glad to announce the release of Lazarus 1.2. This release was built with fpc 2.6.2. Here is the list of changes for Lazarus and Free Pascal:…
- A linking error in a SDL example2
A friend ask me about the audio playing with SDL. I tried to do an example. As I use Linux, with the following command, I consider all packages neeeded would be…
