On Thu, 2 Oct 2014, Brian wrote:

Jonas , thanks very much as I now see what is happening.

FPC only searches the specific directory and not any lower level
directories. In this case the unit called is in a lower level directory.

Is there any way using Geany to add $UNITPATH directives in the main program
or path info in Geany so FPC is able to find the required units?

your best bet it to use a wildcard:

-Fu/path/to/my/dir/*

or, presumably:

{$UNITPATH /path/to/my/dir/* }

this will only search 1 level below 'dir', but maybe this is enough for your 
situation ?

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to