<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 29, 2011, at 11:14 AM, John Thompson wrote:</div><blockquote type="cite"><div>I got this error in building for Windows with Visual Studio (examples\clang-interpreter\main.cpp):</div><font size="1"><p>104>.\main.cpp(89) : error C2660: 'clang::driver::Driver::BuildCompilation' : function does not take 2 argumentsI</p>
<div></div></font>The fix was:
<div> </div>
<div>Index: main.cpp<br>===================================================================<br>--- main.cpp (revision 128469)<br>+++ main.cpp (working copy)<br>@@ -85,8 +85,7 @@<br> // (basically, exactly one input, and the operation mode is hard wired).<br>
llvm::SmallVector<const char *, 16> Args(argv, argv + argc);<br> Args.push_back("-fsyntax-only");<br>- llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args.size(),<br>- Args.data()));<br>
+ llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args));<br> if (!C)<br> return 0;<br clear="all"></div>
<div>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.</div></blockquote><div><br></div>I think the buildbots don't include examples/ for some reason.</div><div><br></div><div>Thanks for fixing this.</div><div><br></div><div>John.</div></body></html>