<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">Hi,</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div style="font-family: Tahoma; font-size: 10pt; ">Options changed, recompiling clean with -B</div><div style="font-family: Tahoma; font-size: 10pt; ">Hint: Start of reading config file /etc/fpc.cfg</div><div style="font-family: Tahoma; font-size: 10pt; ">Hint: End of reading config file /etc/fpc.cfg</div><div style="font-family: Tahoma; font-size: 10pt; ">Free Pascal Compiler version 2.4.2-0 [2010/11/11] for i386</div><div style="font-family: Tahoma; font-size: 10pt; ">Copyright (c) 1993-2010 by Florian Klaempfl</div><div style="font-family: Tahoma; font-size: 10pt; ">Target OS: Linux for i386</div><div style="font-family: Tahoma; font-size: 10pt; ">Compiling island_maker.lpr</div><div style="font-family: Tahoma; font-size: 10pt; ">Compiling unit1.pas</div><div style="font-family: Tahoma; font-size: 10pt; ">unit1.pas(144,19) Error: Generics without specialization cannot be used as a type for a variable</div><div style="font-family: Tahoma; font-size: 10pt; ">unit1.pas(152,1) Fatal: There were 1 errors compiling module, stopping</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://62.166.198.202/bug_view_advanced_page.php?bug_id=18101">http://62.166.198.202/bug_view_advanced_page.php?bug_id=18101</a></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color: rgb(17, 17, 17); font-family: 'Trebuchet MS', Arial, Verdana, sans-serif; font-size: 12pt; "><a name="bugnotes" id="bugnotes" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(42, 101, 173); text-decoration: none; "><div id="bugnotes_open" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><table class="width100" cellspacing="1" style="width: 927px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); "><tbody><tr class="bugnote" id="c43710" style="vertical-align: top; "><td class="bugnote-public" style="font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; text-align: left; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; background-color: rgb(200, 200, 232); color: rgb(0, 0, 0); font-weight: bold; width: 223px; line-height: 1.4; "><span class="small" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; ">(0043710)</span><br>Florian Klämpfl <span class="small" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; ">(administrator)</span> <br><span class="small" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; ">2010-11-29 10:47</span><br><br><div class="small" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 8pt; "></div></td><td class="bugnote-note-public" style="font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; text-align: left; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; background-color: rgb(232, 232, 232); color: rgb(0, 0, 0); width: 685px; ">Please use always the latest release compiler (2.4.2) as starting compiler to build a new fpc.<br></td></tr></tbody></table></div></a></span></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">NB - I am using FPC 2.4.2.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">type</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Terrain_type = (Land, Sea);</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> exit_type = array[ directions ] of integer;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> description_type = array[1..2] of string;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Tmap_detail = Object</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> FTerrain : Terrain_type;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> FTerrain_char : char;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Fdescription : description_type;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Fx, Fy, Flocation_number : integer;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Fexits : exit_type;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> end;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> // The Island class definition</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Generic TIsland<T> = class</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Items : array of Tmap_detail;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> public</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> constructor Create(AList: TList);: [Lazarus] dtm_maker project compile errors with TList code.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> procedure Add( Value : Tmap_detail );</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> end;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> </font></div></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">var</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Form1: TForm1;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> Island : TIsland; // line 144</font></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div></div><div style="font-family: Tahoma; font-size: 10pt; ">Unit1.pas >>> <a href="http://pastebin.com/wuEft4Kb">http://pastebin.com/wuEft4Kb</a></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Best Regards,</div><div style="font-family: Tahoma; font-size: 10pt; ">PEW<br><br></div><div id="SkyDrivePlaceholder" style="font-family: Tahoma; font-size: 10pt; "></div><hr id="stopSpelling" style="font-family: Tahoma; font-size: 10pt; "><font class="Apple-style-span" face="Tahoma" size="2">From: pewilliams2010@live.com</font><br><font class="Apple-style-span" face="Tahoma" size="2">To: lazarus@lists.lazarus.freepascal.org</font><br><font class="Apple-style-span" face="Tahoma" size="2">Date: Sat, 7 May 2011 01:17:39 +1000</font><br><font class="Apple-style-span" face="Tahoma" size="2">Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.</font><br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style><font class="Apple-style-span" face="Tahoma" size="2">
Hi Mattias,</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I found the fgl unit. It was just a matter of adding it to the uses clause the using the right click 'find declaration'.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Thanks.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">PEW<br><br><hr id="ecxstopSpelling">From: pewilliams2010@live.com<br>To: lazarus@lists.lazarus.freepascal.org<br>Date: Sat, 7 May 2011 01:13:25 +1000<br>Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Hi Mattias.<br><br>> Date: Fri, 6 May 2011 17:07:55 +0200<br>> From: nc-gaertnma@netcologne.de<br>> To: lazarus@lists.lazarus.freepascal.org<br>> Subject: Re: [Lazarus] dtm_maker project compile errors with TList code.<br>> <br>> see the unit fgl for examples of generics.<div><br></div><div>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.</div><div><br></div><div>PEW</div><div><br>> <br>> Mattias<br>> <br>> --<br>> _______________________________________________<br>> Lazarus mailing list<br>> Lazarus@lists.lazarus.freepascal.org<br>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus<br></div>
<br>--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</div>
<br><font class="Apple-style-span" face="Tahoma" size="2">--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</font></div> </body>
</html>