[fpc-pascal] lazarus problem

2013-03-07 Thread GMAIL
I am using Lazarus for creating command line Free Pascal programs. I did not realize what hapend but while compiling the free pascal program I get the following: ld: symbol(s) not found for architecture i386 ld: warning: -macosx_version_min not specified, assuming 10.7 Undefined symbols for archi

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-21 Thread Juha (gmail)
Mattias Gaertner kirjoitti lauantai, 21. toukokuuta 2011 12:29:34: > "Juha (gmail)" wrote: > > Yes. Based on forum posts updating causes more problems, also when > > updating between releases, not only when compiling from svn sources. > > What problems? > Ple

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-21 Thread Juha (gmail)
Rainer Stratmann kirjoitti lauantai, 21. toukokuuta 2011 11:32:46: > Easy installation and handling is always very important. > Otherwise it can become boring very fast, even if one is a technical > specialist. > > Huge downloads are easy to handle these days. True. Most people have fast internet

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-21 Thread Juha (gmail)
Mattias Gaertner kirjoitti lauantai, 21. toukokuuta 2011 10:47:44: > > A typical one is: > > can't find unit xxx needed by unit yyy. > > There are more than 20 reasons for this. I started a page for this. > Feel free to improve the page. > http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Juha (gmail)
Mattias Gaertner kirjoitti perjantai, 20. toukokuuta 2011 15:16:30: > "Juha (gmail)" hat am 20. Mai 2011 um 13:07 > > Installing and updating both FPC and Lazarus is still a major obstacle > > for many people. We must improve things to make the first impression > &

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Juha (gmail)
Jonas Maebe kirjoitti perjantai, 20. toukokuuta 2011 13:52:22: > If you want the source, choose "Source" instead of "Win32". Ok, right too many links. Now i realized that all the mirrors give direct links to source packages, only the first SourceForge link has everything included. The source

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Juha (gmail)
Jonas Maebe kirjoitti tiistai, 10. toukokuuta 2011 01:16:38: > On 10 May 2011, at 00:14, Juha (gmail) wrote: > > Maybe I am stupid but I don't know how to download FPC 2.4.2 sources, > > without using SVN repository. > > http://www.freepascal.org/download.var -> S

[fpc-pascal] FPC 2.4.2 source

2011-05-09 Thread Juha (gmail)
Hi Maybe I am stupid but I don't know how to download FPC 2.4.2 sources, without using SVN repository. I am testing on Windows and the default installation package does not contain sources. Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

Re: [fpc-pascal] Is there a problem on the lazarus mailing list?

2011-04-12 Thread Juha (gmail)
my e-mail client (KMail) configured for GMail IMAP, and I also see it in GMail web-interface. Today the message was even replied by Patspiper. Somehow the DNS problem affected only some people. Juha ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] Is there a problem on the lazarus mailing list?

2011-04-12 Thread Juha (gmail)
Luca Olivetti kirjoitti tiistai, 12. huhtikuuta 2011 10:20:04: > Sorry for the off-topic, but I sent a message yesterday to the lazarus > mailing list and it hasn't appeared. > In fact there aren't new messages since last Sunday. > Does anybody know if is there a problem with the lazarus list serve

Re: [fpc-pascal] Inherit interface from 2 interfaces

2011-04-06 Thread Juha (gmail)
Zaher Dirkey kirjoitti keskiviikko, 6. huhtikuuta 2011 19:37:04: > Can i do that? > type > IIntf3 = interface(IIntf11, IIntf2) > > end; No but you can do: type MyClass = class(IIntf11, IIntf2) end; Juha ___ fpc-pascal maillist - f

Re: [fpc-pascal] IntList

2010-10-19 Thread Juha Manninen (gmail)
On Tuesday 19 October 2010 19:10:39 Luiz Americo Pereira Camara wrote: > Yes it's ready in fpc 240: > > uses > Fgl; > > type > TIntegerList = specialize TFPGList ; Well, yes. It is almost as good as a dedicated class. It has a Sort method but you must feed the compare function for it. It do

[fpc-pascal] IntList

2010-10-18 Thread Juha Manninen (gmail)
Hi In Lazarus project jcf2 component has an IntList class which is poorly implemented. It depends on integer and pointer being the same size. I will later suggest to replace it. I have a better IntList. See: http://github.com/JuhaManninen/Pascal/blob/master/IntList/intlist.pas It is similar t

Re: [fpc-pascal] TInterfacedObject memory management

2010-10-17 Thread Juha Manninen (gmail)
On Sunday 17 October 2010 15:01:37 Paul Ishenin wrote: > Try the same but replace io type to IUnknown. Thanks Marco and Paul. I should have known this one. Regards, Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

[fpc-pascal] TInterfacedObject memory management

2010-10-17 Thread Juha Manninen (gmail)
Hi I have a program that creates a TInterfacedObject and nothing else. program project1; {$mode objfpc}{$H+} uses Classes; var io: TInterfacedObject; begin io := TInterfacedObject.Create; end. I compile it with -gh (heap trace) and get the following output: [DBGTGT] Heap dump by hea

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-03 Thread Juha Manninen (gmail)
On Sunday 03 October 2010 23:20:05 Juha Manninen (gmail) wrote: > Anyway this is a good example of a valid Lazarus patch that is ignored, > again. :-( Ok, sorry Lazarus guys, I must take this one back. The valid patch was uploaded only today so it was not really ignored. Now there are 2

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-03 Thread Juha Manninen (gmail)
On Sunday 03 October 2010 19:48:22 C Western wrote: > >> Please report the bug. Yes the result is integer and in 64 bits, this > >> looks like a problem. > > > > I think this is an issue I reported back in March, though I can now see > > I uploaded the wrong patch for it > > Sorry - meant to add:

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-03 Thread Juha Manninen (gmail)
On Saturday 02 October 2010 17:47:27 José Mejuto wrote: > The assembly window in Lazarus is shown when no backtrace line is > available to point the cursor in, so open callstack "View -> Debug -> > Callstack" and you will see that there is no available backtrace, > maybe except the fpc sources with

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-02 Thread Juha Manninen (gmail)
On Saturday 02 October 2010 16:45:51 Jonas Maebe wrote: > > Forgot to tell, I compiled with "-gw -gh". > > "-gw" should be as good as "-gl". > > It has nothing to do with being "as good as", they do different things > (just like "-gw" and "-gh" do different things). I have used only -gw and debug

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-02 Thread Juha Manninen (gmail)
On Saturday 02 October 2010 16:22:02 Honza wrote: > I just tried and can confirm that a LCL app running inside Lazarus > (r27491), having turned on range checks is able to perfectly catch and > show the place of an range check error (Ubuntu 10.04/AMD64). What I've > not tried, but suggest to try, i

Re: [fpc-pascal] How to get to Range Check Error location

2010-10-02 Thread Juha Manninen (gmail)
On Saturday 02 October 2010 12:21:20 Jonas Maebe wrote: > Compile with -gl, or set a breakpoint on FPC_RANGEERROR Forgot to tell, I compiled with "-gw -gh". "-gw" should be as good as "-gl". Now I tried with -gl but no luck. I get an Assembly window: http://koti.phnet.fi/juhamann/Lazarus/Assembl

[fpc-pascal] How to get to Range Check Error location

2010-10-02 Thread Juha Manninen (gmail)
Hi I asked this on Lazarus list but it belongs better here. So, how to get to the source line that gives a range check error? I built the whole Lazarus with -Cr and debug it. When the range error happens, it only shows a RunError or similar and doesn't show me the faulty source line. When closi

Re: [fpc-pascal] Fwd: Delphi incompatible conditionals?

2010-10-01 Thread Juha Manninen (gmail)
On Friday 01 October 2010 19:33:48 Mark Daems wrote: > ... > And it's a weird behaviour, because it's all within an {$IFDEF FPC} > construct. Why does delphi even try to interprete it? > > Somebody knows how to avoid the problem? Try this instead: {$IFNDEF FPC} // Can be empty {$ELSE} ... {$

[fpc-pascal] heap size & free heap

2010-09-14 Thread Juha Manninen (gmail)
Hi Maybe someone here knows... I built Lazarus with "-gh", started it and closed without doing anything else. --- Heap dump by heaptrc unit 717866 memory blocks allocated : 81646458/83984784 717866 memory blocks freed : 81646458/83984784 0 unfreed memory blocks : 0 True heap size : 851968 T

[fpc-pascal] Nesting

2010-09-13 Thread Juha Manninen (gmail)
A new Lazarus review : http://delphimax.wordpress.com/2010/09/13/freepascal-and-lazarus-success-or- failure/ has this comment about Lazarus source: --- Abundant use of the Exit() command instead of nesting code in If/then/else. It has been proven (last time in Delphi Informant Magazine) that allo

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-02 Thread Juha Manninen (gmail)
On Thursday 02 September 2010 00:47:23 José Mejuto wrote: > You must know at which node a new node must be inserted... If your input data contains a string which always identifies the parent node then you can map the string -> "parent node" and find it later for adding a child node. Pseudo code

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Juha Manninen (gmail)
On Sunday 22 August 2010 17:34:55 Andreas Schneider wrote: > uses fgl; > > type > TIntMap = specialize TFPGMap; //Maps Int --> Int I compared the performance of this generics map to a simple integer list. The map was much slower and it also ate huge amouts of memory, > 1.5 GB. Strange. My data

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Juha Manninen (gmail)
On Sunday 22 August 2010 18:51:21 Andreas Schneider wrote: > Afaik, inserting items into a sorted List is done via InsertSort, which is > the fastest way (O(n))to go (IMHO), so you do /not/ have to resort the > list. True. I could optimize the current implementation a little. Now I insert and the

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Juha Manninen (gmail)
On Sunday 22 August 2010 18:45:04 Jeppe Johansen wrote: > I don't think the name map is misleading. It does exactly what a map > does. It maps a type Key to another type Value. A list maps an > integer(index) to a type Value The search is of course based on a list. > Hash tables, as far as I know,

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Juha Manninen (gmail)
On Sunday 22 August 2010 17:34:55 Andreas Schneider wrote: > uses fgl; > > type > TIntMap = specialize TFPGMap; //Maps Int --> Int Thanks. I tried that. However the class name, TFPGMap, turned out to be misleading. It inherits from TFPSMap which inherits from TFPSList, which is a list, not a

[fpc-pascal] Hashmap for integers

2010-08-22 Thread Juha Manninen (gmail)
Hi Is there an implementation of a hash map where the keys are integers. It is needed when the integers are too big for a lookup array. I only need check the existence of keys so the data type is not important. About like this: var Len: integer; SeenLen: TIntMap; // or whatever the type is c

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-14 Thread Juha Manninen (gmail)
On Saturday 14 August 2010 20:04:33 Marcos Douglas wrote: > 3- Do exists something I can do with Delphi but not do with FPC? > Especialy on Windows. ... > 7- Is there any other factors we should consider before making this > migration, which was not written above? 1. Are you targeting for Windows-

RES: RES: [fpc-pascal] dot within unit file name

2008-01-18 Thread Cesar Liws Gmail
> > - Can someone provide the grammar how an identifier looks like in Delphi? > > - How shall the compiler detect that "a.b" is an unit if a is also defined > as a record that > > doesn't contain a field b? > > - How shall the compiler handle if "a.b.c" is an unit and a.b.c is class? > > > > So p

RES: [fpc-pascal] dot within unit file name

2008-01-18 Thread Cesar Liws Gmail
-Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Marco van de Voort Enviada em: sexta-feira, 18 de janeiro de 2008 06:05 Para: FPC-Pascal users discussions Assunto: Re: [fpc-pascal] dot within unit file name > - Can someone provide the grammar how an identif