<div dir="ltr">Hi there.<div><br></div><div>I am trying to generate a list of include dependencies of a specific cpp file using the option -dependency-file <filename> of clang 3.5 on Unbuntu 12.04 LTS. I have tried using it in the following way:</div>
<div><br></div><div> clang++ -MM -dependency-file hello_includes.txt hello.cpp</div><div><br></div><div>and </div><div><br></div><div> clang++ -MM hello.cpp -Xpreprocessor -dependency-file hello_includes.txt</div>
<div><br></div><div>but have been unable to make it work.</div><div><br></div><div><div> clang: warning: argument unused during compilation: '-dependency-file hello_include.txt'</div></div><div><br></div>
<div>So, I was wondering if this feature is actually supported ? ( I am confused as the it shows up in the clang user help but is not contained in the User Manual ). Thank you for your help.</div><div><br></div><div><div>
Regards,<br>Samrat Roy.<br></div>
</div></div>