Andrew Haines | 10 Feb 21:18
Picon
Favicon

AIX

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-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reinier Olislagers | 10 Feb 15:24
Picon

FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

Hi all,

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 installs them.

For Windows, it offers bare-metal install functionality: it downloads an
SVN executable and the binutils (make, etc).

On Linux, you'll need an SVN client, bunzip2 and the binutils (make etc)
installed before running the program.

For Linux and Windows, if a bootstrap compiler is not present, it will
download it for you.

fpcup will compile and install FPC and Lazarus in directories of your
choosing (default provided). It will (minimally) configure Lazarus with
compiler path, FPC source path in a separate primary config path
(default under home on Linux, under LocalAppSettings under Windows).

It will place a desktop shortcut (Windows) or shell script in your home
folder (Linux) to the new Lazarus instance.

It is meant for side-by-side installs: it installs new versions of
FPC/Lazarus that don't influence existing installs at all. It can be run
without admin rights (on Linux at least, should work on Windows, too).

Fpcup can also be used to update the installation; it does an svn
upgrade and a recompile.

(Continue reading)

Jonas Maebe | 10 Feb 13:23
Picon
Favicon

[admin] problems with mail delivery?

Hi,

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 to determine whether this is a widespread  
problem, could you send me an email *off-list* if you also experienced  
such a problem recently? (within the last month) If possible, please  
include the date and time you sent the mail that did not get through.

Thanks,

Jonas
FPC mailing lists admin
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reinier Olislagers | 10 Feb 12:19
Picon

Problems with moving/renaming file using sysutils.renamefile

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
//BootstrapCompiler is a string property
//I'm using my own version of debugln, not important here
debugln('Going to rename/move ' + ExtractedCompiler + ' to ' +
BootstrapCompiler);
sysutils.DeleteFile(BootstrapCompiler); //ignore errors
OperationSucceeded:=renamefile(ExtractedCompiler, BootstrapCompiler);

The program prints out this:
Debug: Going to rename/move /tmp/TMP00000.tmp.out to
/home/pascaldev/fpcbootstrap/i386-linux-ppc386-1
... but OperationSucceeded is set to false; file move failed.

Original file exists:
pascaldev <at> debianlazx86:~/fpcup$ ls /tmp/TMP00000.tmp.out
/tmp/TMP00000.tmp.out

Target directory exists:
ls /home/pascaldev/fpcbootstrap
#directory exists

And I can rename it using the shell:
pascaldev <at> debianlazx86:~/fpcup$ mv /tmp/TMP00000.tmp.out
/home/pascaldev/fpcbootstrap/i386-linux-ppc386-1
#yep, works:
(Continue reading)

Zaher Dirkey | 9 Feb 18:17
Picon

Pass array of record as parameter

Hi,

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', 1), ('test2', 2)]);

--
I am using last reversion of Lazarus, FPC 2.6

Thanks in advance

Zaher Dirkey

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ik | 9 Feb 15:59
Picon
Gravatar

TLinkedList

Hello,

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 it, but it is not meant for the interface part.

Is there a reason for this ? Should I use records instead ?

Thanks,
Ido
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Tony Caduto | 9 Feb 06:09
Picon
Gravatar

tzipper issue(zipper.pp)

Hi,

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 get stored in a file, rather a tmemorystream, which
is then sent to a client app via a socket.

So I noticed the tzipper class in 2.6.x has the ability to save to stream and this works, but it forces you to write the zip to a file first as you 
have to provide a filename, and if you don't provide a filename it raises a exception.

Unless I missed something, this seems odd that you have to write to a file in order to save to a stream.

Thanks,

Snorkel


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ik | 8 Feb 16:25
Picon
Gravatar

Dynamic array and dimensions

Hello,

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 array of single dimension to store each element of a list, however the actual data can arrive as a list inside a list.
Can I use dynamic array that is defined like so:

Array of String

As Multi-dimension array, and if I can' how can I figure out how much dimension it has ?

If not, is there a non balanced tree class that I can use instead to store information instead ?

Thanks,
Ido
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Krzysztof | 8 Feb 13:16
Picon
Favicon

How to detect an any property change in object?

Hi,

I have some class with propertys:

type TMyClass = class
  private
    FProperty1: Boolean;
    FProperty2: String;
    procedure SetProperty2(AValue: String);
    procedure ClassChanged;
  public
    property Property1: Boolean read FProperty1 write FProperty;
    property Property2: String read FProperty2 write SetProperty2;
  end;

I want call ClassChanged on each property change. I could create
SetXXX function for all propertys and there call this method, but
exists any "low level" hack to detect "write" operation on custom
property?

Regards.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Koenraad Lelong | 8 Feb 12:24
Gravatar

How to ? Using two compiler versions.

Hi,

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 that, so I want to try it with the svn-version of fpc. But 
when I just install that, I lose the 2.6.0 version. What have I to do to 
be able to use the two versions in parallel ?

I tried to make the arm-embedded compiler by compiling the svn-version 
with fpc-2.6.0, but that fails.

Thanks for any info.

Regards,

Koenraad Lelong.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reinier Olislagers | 8 Feb 04:56
Picon

FPCDocs: diff: saving fpdoc gives huge diff

fpdocs Revision 889
svn revert --recursive .
Open FPDocEditor on ExpandFileName, type a space somewhere, click Save
icon. (Space seems to be automatically removed)

This gives a 605 kb diff file; uploaded to
https://bitbucket.org/reiniero/fpc_laz_patch_playground/downloads/FPCDocs_r889_StartingFPDocEditor.diff

To my untrained (and probably tired ;) eye), it seems that the file had
been formatted in a certain way and fpde forces its own format on the
file....

Regards,
Reinier

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Gmane