http://qs321.pair.com?node_id=75962


in reply to Find include files's paths

Try makedepend.

It isn't Perl, but it is a semi-standard Unix utility, has been ported all over the place, and solves exactly this problem. You'll have to create a makefile, but since you're doing C/C++, there is a good chance you already have one.

If you use the -f option, you'll get a nice delimited file Perl would be more than happy to munge for you.

Replies are listed 'Best First'.
Re: Re: Find include files's paths
by hthuan (Initiate) on May 02, 2001 at 23:33 UTC
    I need to these include paths to auto create makefiles. So your suggestion will not work. Thanks though. Thuan