logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Marbach <julien.marb...@dental-wings.com>
Subject Re: Unable to build with VS2010
Date Wed, 12 May 2010 13:23:08 GMT
Cory,
I'm having the same probleme here. I have tried to correcte the c2252 
errors by moving the declarations at manespace scope in state of class 
scope but other problems have arised....
I think my poor knowlege of c++ won't allow me to go further :-(

Julien

Le 2010-05-10 23:58, Cory Riddell a écrit :
> I just installed VS2010 and I'm trying to recompile log4cxx. So far, I
> haven't gotten very far. I've previously been able to build on VS2005
> without any problems.
>
> I downloaded apache-log4cxx-0.10.0.zip, apr-1.4.2-win32-src.zip and
> apr-util-1.3.9-win32.zip. Unzipped them all, renamed the apr and
> apr-util directories. Ran configure.bat and configure-aprutil.bat
> successfully. Loaded projects/log4cxx.dsw. VisualStudio 2010 converted
> the project into a solution and I set the active project to log4cxx and
> started to build.
>
> The apr, aprutil and xml projects all seem to build successfully. The
> log4cxx project gives me a seemingly endless stream of errors:
> 4>   appenderattachableimpl.cpp
> 4>C:\dev\ExtLibs\apache\apache-log4cxx-0.10.0\src\main\include\log4cxx/spi/loggingevent.h(155):
> error C2252: an explicit instantiation of a template can only occur at
> namespace scope
> 4>C:\dev\ExtLibs\apache\apache-log4cxx-0.10.0\src\main\include\log4cxx/spi/loggingevent.h(155):
> error C2252: an explicit instantiation of a template can only occur at
> namespace scope
> 4>   appenderskeleton.cpp
> 4>C:\dev\ExtLibs\apache\apache-log4cxx-0.10.0\src\main\include\log4cxx/spi/loggingevent.h(155):
> error C2252: an explicit instantiation of a template can only occur at
> namespace scope
> 4>C:\dev\ExtLibs\apache\apache-log4cxx-0.10.0\src\main\include\log4cxx/spi/loggingevent.h(155):
> error C2252: an explicit instantiation of a template can only occur at
> namespace scope
>
> and this goes on for a long time with similar errors happening in other
> files as well.
>
> loggingevent.h line 155 is:
>      LOG4CXX_LIST_DEF(KeySet, LogString);
>
> Has anybody else compiled successfully with VS2010? Any clues as to what
> the compiler is complaining about?
>
> Thanks,
> cory
>
>    


-- 
Julien MARBACH
Software Project Manager
+1 514 313 7320
www.Dental-Wings.com


Mime
View raw message