<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You should start by reading documentation in the "using-clang-as-a-library" section at <a href="http://clang.llvm.org/docs/#using-clang-as-a-library">http://clang.llvm.org/docs/#using-clang-as-a-library</a>.<div><br></div><div>It will tell you about the different ways to use clang as a library, and point you at a couple of samples.</div><div><div><br><div><div>Le 8 avr. 2013 à 14:52, saber montassar <<a href="mailto:montassar.saber1@gmail.com">montassar.saber1@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>Hi,</p><p>I want to use clang as library to parsing C files. But i don't<br>found any user guide to follow it. For this reason i send this mail<br>to ask you to help me.<br>In my project i download the source code of clang and i just write i<br>
simple file.c to do a simple printf. but i include many header file<br> from the clang directory. I do g++ file .c<br> but many error appear.<br>My questions:<br>1- what should i do to include files from clang source code in my<br>
file and complie it with g++?<br>2- Can i compile the source code of clang to obtain a librairy with<br>gcc compliler if no why ?<br>2- Can any bady give me a simple tutorial that explain hwo to use the<br>source code of clang in my project?<br>
I need your help please answer me.</p><p>My best Regards</p>
_______________________________________________<br>cfe-users mailing list<br><a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div>-- Jean-Daniel</div><div><br></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>