Sverker Wiberg writes:
> Shaleh <[EMAIL PROTECTED]> wrote:
> 
> > Is there an easy way to determine header dependencies?  Anyone header
> > could include many others.  Or do I have to open up each header and
> > track down which package it is included in?
> 
> Here's a piece of plumbing I put together in five minutes:
> 
>    bash$ gcc -E frobozz.c | grep "^# " | cut -d\  -f3 | sort | uniq
> 
> It only shows you the collapsed dependencies, not the tree-structure
> you might want. Also, you should also add in whatever defines (the -D
> flag) you usually have.

What about gcc -E -H ? It prints the headers that get included.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to