Compile error on Windows ALL_BUILD

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile error on Windows ALL_BUILD

Beman Dawes
Revision 104308.

VC++ 2008 Express with SP1.

1>------ Build started: Project: clangDriver, Configuration: Debug Win32 ------
1>Compiling...
1>ArgList.cpp
1>.\ArgList.cpp(120) : error C2061: syntax error : identifier 'Diagnostic'
1>.\ArgList.cpp(120) : error C2511: 'int
clang::driver::ArgList::getLastArgIntValue(clang::driver::OptSpecifier,int)
const' : overloaded member function not found in 'clang::driver::ArgList'
1>        D:\llvm\tools\clang\include\clang/Driver/ArgList.h(98) : see
declaration of 'clang::driver::ArgList'

The following patch clears the problem and allows ALL_BUILD to build with no
errors. It is just a blind guess; this is only the second time I've built clang,
and I'm totally unfamiliar with the clang code.

--Beman

Index: lib/Driver/ArgList.cpp
===================================================================
--- lib/Driver/ArgList.cpp (revision 104308)
+++ lib/Driver/ArgList.cpp (working copy)
@@ -117,7 +117,7 @@
 }
 
 int ArgList::getLastArgIntValue(OptSpecifier Id, int Default,
-                                Diagnostic &Diags) const {
+                                clang::Diagnostic &Diags) const {
   int Res = Default;
 
   if (Arg *A = getLastArg(Id)) {
 

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on Windows ALL_BUILD

Douglas Gregor

On May 20, 2010, at 7:00 PM, Beman Dawes wrote:

> Revision 104308.
>
> VC++ 2008 Express with SP1.
>
> 1>------ Build started: Project: clangDriver, Configuration: Debug Win32 ------
> 1>Compiling...
> 1>ArgList.cpp
> 1>.\ArgList.cpp(120) : error C2061: syntax error : identifier 'Diagnostic'
> 1>.\ArgList.cpp(120) : error C2511: 'int
> clang::driver::ArgList::getLastArgIntValue(clang::driver::OptSpecifier,int)
> const' : overloaded member function not found in 'clang::driver::ArgList'
> 1>        D:\llvm\tools\clang\include\clang/Driver/ArgList.h(98) : see
> declaration of 'clang::driver::ArgList'
>
> The following patch clears the problem and allows ALL_BUILD to build with no
> errors. It is just a blind guess; this is only the second time I've built clang,
> and I'm totally unfamiliar with the clang code.

Great, thanks Beman! Daniel committed this in revision 104432.

        - Doug

> --Beman
>
> Index: lib/Driver/ArgList.cpp
> ===================================================================
> --- lib/Driver/ArgList.cpp (revision 104308)
> +++ lib/Driver/ArgList.cpp (working copy)
> @@ -117,7 +117,7 @@
> }
>
> int ArgList::getLastArgIntValue(OptSpecifier Id, int Default,
> -                                Diagnostic &Diags) const {
> +                                clang::Diagnostic &Diags) const {
>   int Res = Default;
>
>   if (Arg *A = getLastArg(Id)) {
>
>
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev