#39 Error While building on MSVC 6.0

open
nobody
None
5
2009-12-10
2009-12-10
Anonymous
No

Hi ,
downloaded the log4cpp-1.0.tar.gz and I am trying to build the library in MSVC6.0. I am getting the follwing error. Please let me know am I doing some wrong thing or is it a bug in the existing code

"C:\Program Files\Microsoft Visual Studio\VC98\bin\cl.exe" /nologo /DPI
MCO_TEST /W3 /Zi /D_DEBUG /Od /GZ /FdAbortAppender /MTd /GR /GX /Zm200 /D_WINDOW
S /I"C:\Program Files\Microsoft Visual Studio\VC98\include" /I"C:\Program File
s\Microsoft Visual Studio\VC98\atl\include" /I"C:\Program Files\Microsoft Visua
l Studio\VC98\mfc\include" /DWIN32 -I. -I..\include /c AbortAppender.cpp /FoAbo
rtAppender.obj
AbortAppender.cpp
..\include\log4cpp/FactoryParams.hh(85) : error C2893: Failed to specialize func
tion template 'const class log4cpp::details::required_params_validator &__thisca
ll log4cpp::details::required_params_validator::operator ()(const char *,T &) co
nst'
With the following template arguments:
'class std::basic_string<char,struct std::char_traits<char>,class std::a
llocator<char> >'
AbortAppender.cpp(49) : see reference to function template instantiation
'class log4cpp::details::required_params_validator __thiscall log4cpp::details:
:parameter_validator::required(const char *,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > &) const' being compiled
..\include\log4cpp/FactoryParams.hh(85) : error C2064: term does not evaluate to
a function
AbortAppender.cpp(49) : see reference to function template instantiation
'class log4cpp::details::required_params_validator __thiscall log4cpp::details:
:parameter_validator::required(const char *,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > &) const' being compiled
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\c
l.exe"' : return code '0x2'
Stop.

Discussion