[cfe-dev] Compiling a simple Win32 program
bigcheesegs at gmail.com
Wed Jun 6 13:07:44 PDT 2012
On Wed, Jun 6, 2012 at 6:22 AM, Cesar Mello <cmello at gmail.com> wrote:
> Oh thank you so much Dmitry! It worked perfectly!
> clang -c test.cpp
> link test.o user32.lib msvcrt.lib msvcprt.lib
> clang and llvm are awesome! Congratulations to all for the great work!!!
> Best regards
> On Wed, Jun 6, 2012 at 8:01 AM, r4start <r4start at gmail.com> wrote:
>> On 06/06/2012 14:54, Cesar Mello wrote:
>>> It compiles nicely, but fails to link. Please can you tell me how to
>>> specify user32 and gdi32 libraries for the linker? Sorry if I'm being too
>>> newbie. :-)
>> For example like this
>> link test.obj user32.lib msvcrt.lib msvcprt.lib
>> - Dmitry Sokolov.
This could be made to work without a separate link invocation, but
someone would have to teach clang how to properly forward -l arguments
to link.exe. It should actually be pretty simple.
- Michael Spencer
More information about the cfe-dev