<div dir="ltr">1. I think that passing a dash as the filename will get clang to read from the standard input, you'll also have to specify the language with -x.<div><br></div><div>clang -x c++ -</div><div><br></div><div>

2. Driver forwards all -l flags to the linker but you do have to have a linker (be it Visual Studio, mingw or something else).</div><div><br></div><div>clang -lcUrl.lib</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Feb 20, 2014 at 6:17 PM, Meir Yanovich <span dir="ltr"><<a href="mailto:meiry242@gmail.com" target="_blank">meiry242@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hello list <br>i have few small questions about clang hope you could help <div><br>1. can clang get input in memory  c++ code and compile it to executable ? , i know it can load c++ file <br>but i like to be able to dynamically build the source file , <div>


if not is there any other way to build logic in memory and then compile it ? <br><br></div><div>2. i like to work with c++ source code that is compiled to executable also <br>i like to link static lib's to the source code , <br>


for example :</div><div>build curl simple client . so the client will be build in memory and then it will be linked to <br>cUrl.lib </div><div>i dont what to be dependent on Visual studio linker . what should i do ? <br>

<br>
Thanks for your help </div><div><br></div></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>