[fpc-pascal] Please someone explain this to me

Marco van de Voort marcov at stack.nl
Wed Feb 10 15:21:16 CET 2016


In our previous episode, Juha Manninen said:
[ Charset UTF-8 unsupported, converting... ]
> On Wed, Feb 10, 2016 at 2:01 AM, Vojt?ch ?ih?k <vojtech.cihak at atlas.cz> wrote:
> > There exists IDE directive
> >
> > {%MainUnit ***.pas}
> >
> > and include files should contain it.
> 
> Yes, that is the solution for Anthony's problem. Most include files
> used by LCL units have it but FPC libraries may not.

I think it would be good to add that to most FPC inc files in rtl and fcl
too.

Most usage is straightforward, and can be solved using the directive. Some,
like ptypes.inc are more complicated. 

I'll see if I can add some directives in the coming weeks.



More information about the fpc-pascal mailing list