[cfe-dev] [Windows toolchain] link failures from command prompt

Richard Smith richard at metafoo.co.uk
Tue Oct 1 17:27:08 PDT 2013


On Tue, Oct 1, 2013 at 7:46 AM, 湖西Zero <lifangmu at foxmail.com> wrote:

> I know,Visual Studio Use Microsoft C++ ABI,But Clang Use Itanium ABI ,They
> are not the same as Name mangling。
>

Clang does support a lot of the MS C++ ABI, but the 'clang++' driver
defaults to using the Itanium ABI. See the comments on the bug for more
information.


> **
> ------------------
> <http://wpa.qq.com/msgrd?v=3&uin=1053112601&site=qq&menu=yes>
> **
>
>
>
> ------------------ Original ------------------
> *From:* "Beman Dawes"**;
> *Date:* 2013年10月1日(星期二) 晚上10:19
> *To:* "Clang"**;
> *Subject:* [cfe-dev] [Windows toolchain] link failures from command prompt
>
> I just filed a bug report (http://llvm.**org/bugs/sho**w_bug.cgi?id**
> =17428 <http://llvm.org/bugs/show_bug.cgi?id=17428>)
> against LLVM-3.4.r191323-win32.exe. Here is the rationale for considering
> failure to link under the "Developer Command Prompt for VS2012" a bug:
>
> Boost developers and test runners, and probably lots of other folks too,
> run
> their automated tests from the command prompt rather than via the IDE. So
> it
> is a showstopper for these folks if the clang windows toolchain doesn't
> work
> from the command prompt.
>
> In my little hello.cpp test the clang++ compile was clean, but the link had
> unresolved externals like "hello-111ee3.o : error LNK2019: unresolved
> external symbol __ZSt4cout referenced in function _main".
>
> That's particularly frustrating since it is so close to working!
>
> Once the command prompt is working, I'll submit a patch to
> http://llvm.**org/builds/ <http://llvm.org/builds/> explaining how to use
> it.
>
> Thanks,
>
> --Beman
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.u**iuc.edu <cfe-dev at cs.uiuc.edu>
> http://lists**.cs.uiuc.edu**/mailman/lis**tinfo/cfe-de**v<http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>
> .
>
> _______________________________________________
> 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/20131001/787d6b96/attachment.html>


More information about the cfe-dev mailing list