[cfe-dev] Curious error
John Thompson
john.thompson.jtsoftware at gmail.com
Tue Mar 29 11:14:33 PDT 2011
I got this error in building for Windows with Visual Studio
(examples\clang-interpreter\main.cpp):
104>.\main.cpp(89) : error C2660: 'clang::driver::Driver::BuildCompilation'
: function does not take 2 argumentsI
The fix was:
Index: main.cpp
===================================================================
--- main.cpp (revision 128469)
+++ main.cpp (working copy)
@@ -85,8 +85,7 @@
// (basically, exactly one input, and the operation mode is hard wired).
llvm::SmallVector<const char *, 16> Args(argv, argv + argc);
Args.push_back("-fsyntax-only");
- llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args.size(),
- Args.data()));
+ llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args));
if (!C)
return 0;
I've had it for about a week, so I'm curious that it didn't seem to show up
in the non-Windows builds on the buildbot. Hence I thought I should check
here before checking it in.
-John
--
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110329/a5c096f9/attachment.html>
More information about the cfe-dev
mailing list