[cfe-dev] Driver.cpp compile error in VS2005

Chris Lattner clattner at apple.com
Wed Mar 25 22:56:40 PDT 2009


On Mar 25, 2009, at 10:50 PM, John Thompson wrote:

> Hi,
>
> New guy here.  In running the Visual Studio ALL_BUILD.vcproj  
> generated by cmake, I get a compile error in Driver.cpp:
>

Does this fix it for you?
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090323/014533.html

-Chris

>
> 1>Driver.cpp
> 1>.\Driver.cpp(40) : error C2061: syntax error : identifier  
> 'Diagnostic'
> 1>.\Driver.cpp(41) : error C2511:  
> 'clang::driver::Driver::Driver(const char *,const char *,const char  
> *,const char *)' : overloaded member function not found in  
> 'clang::driver::Driver'
> 1> C:\Tools\llvm\tools\clang\include\clang/Driver/Driver.h(39) : see  
> declaration of 'clang::driver::Driver'
> Curiously, the Diagnostic parameter is missing in the above  
> message.  This error goes away if I add a "clang::" qualifier to the  
> "Diagnostic" symbol in both the constructor declaration in Driver.h  
> and the constructor implementation in Driver.cpp.  I.e.:
>
> public:
>   Driver(const char *_Name, const char *_Dir,
>          const char *_DefaultHostTriple,
>          const char *_DefaultImageName,
>          clang::Diagnostic &_Diags);
> and:
>
> Driver::Driver(const char *_Name, const char *_Dir,
>                const char *_DefaultHostTriple,
>                const char *_DefaultImageName,
>                clang::Diagnostic &_Diags)
> VC++ quirk?
>
> -John
>
> -- 
> John Thompson
> John.Thompson.JTSoftware at gmail.com
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090325/bc115c5d/attachment.html>


More information about the cfe-dev mailing list