[fpc-pascal] Searching recursively for units in a path
luciano de souza
luchyanus at gmail.com
Sat Dec 5 13:38:21 CET 2015
It works partially.
broker.pas declare brookfclhttpappbroker.pas, but it was not found:
In fpc.cfg, I tried:
The compiler said it is an illegal parameter, so I took off the quotes.
It was found ./Globals/Seetings/brokers.pas. It's Ok, but when
./Globals/Components/Brook/brookfclhttpappbroker.pas was not found.
Perhaps, it's better to have the work of declaring everything individually.
2015-12-05 9:52 GMT-02:00, Michael Van Canneyt <michael at freepascal.org>:
> On Sat, 5 Dec 2015, luciano de souza wrote:
>> Hello all,
>> On the commandline or in fpc.cfg, I can include search paths as:
>> fpc test.pp -Fu./Componentes
>> But ./Components has a world of subfolders. So I imagine I could
>> indicates all subfolders as:
>> fpc test.pp -Fu./Componentes/*
>> It does not work, so I ask: is there a way to indicates subfolders
>> recursively with -Fu?
> You can, but you must quote the path, otherwise the shell will attempt to
> quote it:
> fpc test.pp "-Fu./Componentes/*"
> That should work.
> If you look in the config file fpc.cfg generated by FPC, you will see that
> this technique is used there.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
Luciano de Souza
More information about the fpc-pascal