<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>
<div> </div>
<div>-John</div>
<div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br></div>