Dears,<div><br></div><div>I am new to this list, and hope this question is pertinent to this mailing list. </div><div><br></div><div>I have been trying to use Clang to extract an AST from my source code, but without success when attempting to do so with Graphviz.</div>

<div><br></div><div>I created a thread on Stackoverflow recently in hope any could help me [1], but the question is actually pretty simple. I keep getting </div><div><br></div><div><br></div><div>Stmt::viewAST is only available in debug builds on systems with Graphviz or gv!</div>

<div><br></div><div>alongside the code that is output despite having graphviz added to the path and having it installed on my machine. dot works fine from my console, but I have no 'gv' like it is suggested on the documentation (you can find how I attempted that and the versions on the stack link better formatted than on this email).</div>

<div><br></div><div>The command I am running on my console is:</div><div><br></div><div>./clang -cc1 -ast-view smd.c </div><div><br></div><div>My graphviz version is 2.28 and my clang version is 2.9 (for a couple of reasons I need to make it work for this version).</div>

<div><br></div><div><a href="http://stackoverflow.com/questions/10962845/stmtviewast-is-only-available-in-debug-builds-on-systems-with-graphviz-or-gv">http://stackoverflow.com/questions/10962845/stmtviewast-is-only-available-in-debug-builds-on-systems-with-graphviz-or-gv</a></div>

<div><br></div><div>I also heard xml output was discontinued, but I still see the option from cc1 to output in such format without any warning message on 2.9 (although no apparent output is given in that case), why is that?</div>

<div><br></div><div>Thank you,</div><div><br clear="all">Carlos Andrade<br><div><a href="http://carlosandrade.co" target="_blank">http://carlosandrade.co</a></div><br>
</div>