在Windows上构建libcxx时出现问题,“错误:'操作符删除'的重新声明无法添加'dllexport'属性”

时间:2018-11-09 19:58:33

标签: visual-c++ clang llvm libc++

以前,我已经针对msvc构建工具2017构建了llvm,clang和lld。

我现在正在尝试使用cmake / ninja针对新建的clang-cl构建libcxx。然后我得到了这个错误。

In file included from C:\libcxx-master\src\chrono.cpp:12:
In file included from C:\libcxx-master\include\system_error:149:
In file included from C:\libcxx-master\include\__functional_base:18:
C:\libcxx-master\include\new(194,36):  error: redeclaration of 'operator delete' cannot add 'dllexport' attribute
_LIBCPP_OVERRIDABLE_FUNC_VIS void  operator delete(void* __p) _NOEXCEPT;
                                   ^
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.13.26128\include\vcruntime_new.h(83,16):  note: previous declaration is here
void __CRTDECL operator delete(

如何在Windows上编译libcxx?

0 个答案:

没有答案