Re: How to determine header dependencies for -dev packages
Sverker Wiberg writes:
> Shaleh <firstname.lastname@example.org> 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@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org