Hi,
Options changed, recompiling clean with -BHint: Start of reading config file
/etc/fpc.cfgHint: End of reading config file /etc/fpc.cfgFree Pascal Compiler
version 2.4.2-0 [2010/11/11] for i386Copyright (c) 1993-2010 by Florian
KlaempflTarget OS: Linux for i386Compiling island_maker.lprCompiling
unit1.pasunit1.pas(144,19) Error: Generics without specialization cannot be
used as a type for a variableunit1.pas(152,1) Fatal: There were 1 errors
compiling module, stopping
http://62.166.198.202/bug_view_advanced_page.php?bug_id=18101
(0043710)
Florian Klämpfl (administrator)
2010-11-29 10:47
Please use always the latest release compiler (2.4.2) as starting compiler to
build a new fpc.
NB - I am using FPC 2.4.2.
type Terrain_type = (Land, Sea);
exit_type = array[ directions ] of integer;
description_type = array[1..2] of string;
Tmap_detail = Object FTerrain : Terrain_type;
FTerrain_char : char; Fdescription : description_type;
Fx, Fy, Flocation_number : integer; Fexits : exit_type;
end;
// The Island class definition Generic TIsland<T> = class Items : array
of Tmap_detail; public constructor Create(AList: TList);: [Lazarus]
dtm_maker project compile errors with TList code. procedure Add( Value :
Tmap_detail ); end; var Form1: TForm1; Island : TIsland; // line 144
Unit1.pas >>> http://pastebin.com/wuEft4Kb
Best Regards,PEW
From: [email protected]
To: [email protected]
Date: Sat, 7 May 2011 01:17:39 +1000
Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.
Hi Mattias,
I found the fgl unit. It was just a matter of adding it to the uses clause the
using the right click 'find declaration'.
Thanks.
PEW
From: [email protected]
To: [email protected]
Date: Sat, 7 May 2011 01:13:25 +1000
Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.
Hi Mattias.
> Date: Fri, 6 May 2011 17:07:55 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.
>
> see the unit fgl for examples of generics.
Without meaning to ask the obvious question, where can I find the 'fgl' unit ?
Please quote the path or url for it. I used the find command on my Linux system
and it was not found. I have a Lazarus folder in my home folder.
PEW
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus