<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Tahoma">Did some quick research on this topic:<br>
<br>
(1) Nice pragma trick for making this problem show up at compile
time:<br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/74326/how-should-i-detect-unnecessary-include-files-in-a-large-c-project/109890#109890">http://stackoverflow.com/questions/74326/how-should-i-detect-unnecessary-include-files-in-a-large-c-project/109890#109890</a><br>
<br>
(2) There is a tool based on clang that can detect unused
includes:<br>
</font><a href="http://code.google.com/p/include-what-you-use/">http://code.google.com/p/include-what-you-use/</a><br>
<br>
(3) The cppclean project also does some detection of unused
includes:<br>
<a href="http://code.google.com/p/cppclean/">http://code.google.com/p/cppclean/</a><br>
<br>
<br>
<br><br><br><hr><font size="-2" color=808080>Disclaimer: <a href="http://www.peralex.com/disclaimer.html">http://www.peralex.com/disclaimer.html</a><br><br>
</body>
</html>