[cfe-dev] Questions from beginner
Nikola Smiljanic
popizdeh at gmail.com
Thu Feb 20 12:25:04 PST 2014
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.
clang -x c++ -
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).
clang -lcUrl.lib
On Thu, Feb 20, 2014 at 6:17 PM, Meir Yanovich <meiry242 at gmail.com> wrote:
> Hello list
> i have few small questions about clang hope you could help
>
> 1. can clang get input in memory c++ code and compile it to executable ?
> , i know it can load c++ file
> but i like to be able to dynamically build the source file ,
> if not is there any other way to build logic in memory and then compile it
> ?
>
> 2. i like to work with c++ source code that is compiled to executable also
> i like to link static lib's to the source code ,
> for example :
> build curl simple client . so the client will be build in memory and then
> it will be linked to
> cUrl.lib
> i dont what to be dependent on Visual studio linker . what should i do ?
>
> Thanks for your help
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140221/9c2e5ca9/attachment.html>
More information about the cfe-dev
mailing list