[LC++]Tracking header files

Matteo Ianeselli ianezz at sodalia.it
Wed Aug 8 19:56:04 UTC 2001


Mark Phillips, in un'altra vita, ha scritto:

 > My question is: is there any easy way of tracking
 > what include files are included from where?

Well, if I'm not wrong, you could do

g++ -E somesource.cxx | grep -E '# [0-9]+ "[^"]+"'

and the all files in the rows beginning with ``# 1'' should included
by the file listed in the previous row in the output.

-- 
UNIX diapers by Pannolini USPTO 2039887  http://www.uspto.gov
Matteo Ianeselli      ianezz AT sodalia.it  (+39) 0461 316452
Visita il LinuxTrent:            http://www.linuxtrent.it



More information about the tuxCPProgramming mailing list