[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to determine header dependencies for -dev packages



And thus spake Sverker Wiberg, on Wed, May 20, 1998 at 02:53:39PM +0200:
> Shaleh <shaleh@livenet.net> 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.

Any real reason not to use gcc -M to generate this same thing?

-- 
Elie Rosenblum <erosenbl at nyx.net>That is not dead which can eternal lie,
     <fnord at cosanostra.net>   And with strange aeons even death may die.
Developer / Mercenary / System Administrator             - _The Necromicon_


--
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: