我提取了最新的svn存储库,并设法使用Visual Studio构建相同的代码。但是我试图使用YouCompleteMe插件来实现vim,它需要使用mingw64构建clang。 Visual Studio构建不起作用。这是错误。不确定如何继续。
llvm[4]: Compiling Action.cpp for Release+Asserts build
llvm[4]: Compiling Compilation.cpp for Release+Asserts build
llvm[4]: Compiling CrossWindowsToolChain.cpp for Release+Asserts build
llvm[4]: Compiling Driver.cpp for Release+Asserts build
llvm[4]: Compiling DriverOptions.cpp for Release+Asserts build
llvm[4]: Compiling Job.cpp for Release+Asserts build
llvm[4]: Compiling MSVCToolChain.cpp for Release+Asserts build
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:88:9: error: declaration of 'UO
W _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT::UOW' [-fpermissive]
UOW UOW;
^
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:13:16: error: changes meaning o
f 'UOW' from 'typedef GUID UOW' [-fpermissive]
typedef GUID UOW,*PUOW;
^
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:132:9: error: declaration of 'U
OW _KCRM_TRANSACTION_BLOB::UOW' [-fpermissive]
UOW UOW;
^
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:13:16: error: changes meaning o
f 'UOW' from 'typedef GUID UOW' [-fpermissive]
typedef GUID UOW,*PUOW;
^
/usr/bin/rm: cannot lstat `/c/llvm/tools/clang/lib/Driver/Release+Asserts/MSVCTo
olChain.d.tmp': No such file or directory
make[4]: *** [/c/llvm/tools/clang/lib/Driver/Release+Asserts/MSVCToolChain.o] Er
ror 1
make[4]: Leaving directory `/c/llvm/tools/clang/lib/Driver'
make[3]: *** [Driver/.makeall] Error 2
make[3]: Leaving directory `/c/llvm/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/c/llvm/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/c/llvm/tools'
make: *** [all] Error 1
答案 0 :(得分:0)
我看到MSVC工具链虽然这是在mingw里面。你可以仔细检查你使用Unix Makefiles生成器运行cmake并且你没有尝试在msvc配置目录中构建