• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Counting header includes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting header includes


  • Subject: Re: Counting header includes
  • From: Jeff Nordquist <email@hidden>
  • Date: Fri, 14 Mar 2008 16:14:24 -0500


On Mar 14, 2008, at 12:03 PM, Philip Aker wrote:

He means 'cpp' the unix command that Xcode uses.

If you put '-H' in the 'Other C Flags' field then as the compile happens all the header files read will be output to the build results console.

From the cpp man page ('man cpp')

-H Print the name of each header file used, in addition to other
normal activities. Each name is indented to show how deep in the
#include stack it is. Precompiled header files are also printed,
even if they are found to be invalid; an invalid precompiled header
file is printed with ...x and a valid one with ...! .


Thanks Paul,

I actually didn't know about -H. I used something like: -dMMDI …
but I think your suggestion is a nicer solution (certainly easier to remember :-).


Philip Aker

And it solved my problem very nicely. Thanks to both of you! Jeff

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Counting header includes (From: Jeff Nordquist <email@hidden>)
 >Re: Counting header includes (From: Philip Aker <email@hidden>)
 >Re: Counting header includes (From: Jeff Nordquist <email@hidden>)
 >Re: Counting header includes (From: Paul Sargent <email@hidden>)
 >Re: Counting header includes (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Memory usage measurement questions
  • Next by Date: Re: Memory usage measurement questions
  • Previous by thread: Re: Counting header includes
  • Next by thread: Debugger array view?
  • Index(es):
    • Date
    • Thread