[fpc-pascal] Environment Variables with Include Directive

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Jul 26 17:34:58 CEST 2009

On 26 Jul 2009, at 17:13, Andrew Brunner wrote:

> I've got a situation where I'm wanting to concatenate a path from the
> environment with a string to specify the path to the actual file to
> include when building.
> PATH_TO_DATA_INCLUDES = '/mnt/Source/Includes/Data/
> {$i %PATH_TO_DATA_INCLUDES%+definitions.inc}
> Is there any way to get FPC to join the two entries together to create
> a single include reference?

No. Although not identical, you can use the - 
Fi"$PATH_TO_DATA_INCLUDES" command line parameter to add that  
directory to the include files search path.


More information about the fpc-pascal mailing list