[cfe-dev] [LLVMdev] Clang64 on Windows using Mingw64 yields many linking errors?

Justin Holewinski justin.holewinski at gmail.com
Mon Jun 11 04:34:17 PDT 2012

On Mon, Jun 11, 2012 at 7:04 AM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:

> Hello
> First of all, note the "llvm" in the mailing list title. Clang
> questions should be asked in other ML.

(Cross-posting to cfe-dev)

> > 3. Run cmake and let it figure out that its using Clang on Windows.
> > 4. Build and realize that the link doesn't work because CMake pulls in
> the
> > wrong libraries (per default it uses Microsoft naming conventions:
> foo.lib
> > instead of libfoo.a).
> It seems like you're not targeting mingw32, but MS toolchains. Stuff
> won't work smooth here and major WIP.
> Everything else below can be ignored.

I don't think that's the issue here.  CMake happily tries to link with the
mingw libs, but as pointed out in that CMake ML post, the CMake scripts do
not know how to pass GCC-style flags to Clang on Windows.  Mikael, can you
post the link line that CMake generates (make VERBOSE=1), preferably to
just cfe-dev?

> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120611/35bff367/attachment.html>

More information about the cfe-dev mailing list