[cfe-dev] Questions from beginner

Nikola Smiljanic popizdeh at gmail.com
Thu Feb 20 13:33:44 PST 2014


What exactly are you trying to do? Compiling code into executable file
sounded like you wanted to use clang as a compiler. As far as the linker
goes, clang can use Visual Studio's link.exe but I'm not sure if this combo
is production ready...


On Fri, Feb 21, 2014 at 8:29 AM, Meir Yanovich <meiry242 at gmail.com> wrote:

> you mean i cant use clang API , i do need to make it via CMD call ?
> about the linker this is very sad , i need it to be with free ( none GPL )
> linker , i think mingw is GPL .
> is there any alternatives to none GPL linker  ?
>
>
> On Thu, Feb 20, 2014 at 10:25 PM, Nikola Smiljanic <popizdeh at gmail.com>wrote:
>
>> 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/832dbada/attachment.html>


More information about the cfe-dev mailing list