[cfe-dev] Compiling a simple Win32 program
kim.grasman at gmail.com
Thu Jun 7 01:32:32 PDT 2012
On Wed, Jun 6, 2012 at 10:07 PM, Michael Spencer <bigcheesegs at gmail.com> wrote:
>> 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
> 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.
Does clang have a chance to know where to look for LINK.EXE, or does
it just have to assume it's in the path?
I've run into some problems when I had gnuwin32's link.exe (which
creates filesystem links) in the path -- I eventually had to rename it
Just a heads-up if someone does work on this.
More information about the cfe-dev