I got this error now:<br><br>treap.pas(311,48) Error: Illegal expression<br>treap.pas(311,50) Error: Illegal expression<br>treap.pas(311,50) Fatal: Syntax error, ";" expected but "ordinal const" found<br>
Fatal: Compilation aborted<br><br>The line that generated this error is:<br><br> if Result = NullNode then begin<br> <span style="color:rgb(255,0,0)">if (Rank = 0) or (Anchor < Key) then Rank += 1;</span> <-- error here<br>
Result := nil;<br> end;<br><br>It seems that the += operator is not supported anymore?? Is there any switches in the new 2.7.1?<br><br><br><div class="gmail_quote">2013/3/23 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 23.03.2013 03:35, Xiangrong Fang wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sven,<br>
<br>
My unite uses contnrs unit, how can I instruct the compiler to use the<br>
contnrs unit (also the Classes and sysutils units) of v2.7.1? I have<br>
already built 2.7.1 and now try to compile my program in the fpc source<br>
dir as you told.<br>
</blockquote>
<br></div>
The Classes and SysUtils unit should be no problem if you used the command I gave you (if you look into the "rtl/units/i386-linux" (or "rtl/units/x86_64-linux") directory you'll see the files "classes.ppu" and "sysutils.ppu"). For the compiler to find unit "Contnrs" you need to add "-Fupackages/fcl-base/units/<u></u>i386-linux" (or "-Fupackages/fcl-base/units/<u></u>x86_64-linux") to the command.<div class="HOEnZb">
<div class="h5"><br>
<br>
Regards,<br>
Sven<br>
<br>
______________________________<u></u>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br>