[fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

Sven Barth pascaldragon at googlemail.com
Sat Mar 23 14:17:40 CET 2013


On 23.03.2013 03:35, Xiangrong Fang wrote:
> Hi Sven,
>
> My unite uses contnrs unit, how can I instruct the compiler to use the
> contnrs unit (also the Classes and sysutils units) of v2.7.1?  I have
> already built 2.7.1 and now try to compile my program in the fpc source
> dir as you told.

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/i386-linux" (or 
"-Fupackages/fcl-base/units/x86_64-linux") to the command.

Regards,
Sven




More information about the fpc-pascal mailing list