On Mon, Mar 24, 2014 at 10:37 AM, Samrat Roy <samrat...@gmail.com> wrote:
> Hi there.
>
> 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:
>
>            clang++ -MM -dependency-file hello_includes.txt hello.cpp

Please use the same option as with GCC:

clang++ -MM hello.cpp

or

clang++ -MM -MF deps.txt hello.cpp

-dependency-file is an internal option and should not be used directly.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/
_______________________________________________
cfe-users mailing list
cfe-users@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users

Reply via email to