Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-12

Searching recursively for units in a path

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

luciano de souza

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?

Luciano de Souza
Michael Van Canneyt
to luciano de souza
luciano de souza wrote 13 lines
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.

Michael.

luciano de souza
to Michael Van Canneyt

It works partially.

broker.pas declare brookfclhttpappbroker.pas, but it was not found:

In fpc.cfg, I tried:

"-Fu./Globals/*"

The compiler said it is an illegal parameter, so I took off the quotes.

-Fu./Globals/*"

It was found ./Globals/Seetings/brokers.pas. It's Ok, but when compiling brokers.pas,
./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 :

Show quoted text 31 lines
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. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Luciano de Souza