prgeorge3383
asked on
Compling log4cplus in vc 2005 express edition
Cannot compile log4cplus in vc 2005 express edition
I am getting these errors
1>------ Build started: Project: log4cplus_static, Configuration: Debug Win32 ------
1>Compiling...
1>timehelper.cxx
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C3630: error when processing the token '__value'
1> c:\log4cplus-1.0.2\include \log4cplus \helpers\s tringhelpe r.h(132) : see reference to class template instantiation 'log4cplus::helpers::strin g_append_i terator<_C ontainer>' being compiled
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : fatal error C1190: managed targeted code requires a '/clr' option
1>threads.cxx
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C3630: error when processing the token '__value'
1> c:\log4cplus-1.0.2\include \log4cplus \helpers\s tringhelpe r.h(132) : see reference to class template instantiation 'log4cplus::helpers::strin g_append_i terator<_C ontainer>' being compiled
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : fatal error C1190: managed targeted code requires a '/clr' option
1>stringhelper.cxx
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C3630: error when processing the token '__value'
1> c:\log4cplus-1.0.2\include \log4cplus \helpers\s tringhelpe r.h(132) : see reference to class template instantiation 'log4cplus::helpers::strin g_append_i terator<_C ontainer>' being compiled
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : fatal error C1190: managed targeted code requires a '/clr' option
1>socketbuffer.cxx
1>socketappender.cxx
1>socket.cxx
1>socket-win32.cxx
1>sleep.cxx
1>rootlogger.cxx
1>property.cxx
1>pointer.cxx
1>patternlayout.cxx
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C3630: error when processing the token '__value'
1> c:\log4cplus-1.0.2\include \log4cplus \helpers\s tringhelpe r.h(132) : see reference to class template instantiation 'log4cplus::helpers::strin g_append_i terator<_C ontainer>' being compiled
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : fatal error C1190: managed targeted code requires a '/clr' option
1>objectregistry.cxx
1>nullappender.cxx
1>nteventlogappender.cxx
1>ndc.cxx
1>logloguser.cxx
1>loglog.cxx
1>loglevel.cxx
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C3630: error when processing the token '__value'
1> c:\log4cplus-1.0.2\include \log4cplus \helpers\s tringhelpe r.h(132) : see reference to class template instantiation 'log4cplus::helpers::strin g_append_i terator<_C ontainer>' being compiled
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : fatal error C1190: managed targeted code requires a '/clr' option
1>loggingserver.cxx
1>Generating Code...
1>Compiling...
1>loggingevent.cxx
1>loggerimpl.cxx
1>logger.cxx
1>layout.cxx
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : error C3630: error when processing the token '__value'
1> c:\log4cplus-1.0.2\include \log4cplus \helpers\s tringhelpe r.h(132) : see reference to class template instantiation 'log4cplus::helpers::strin g_append_i terator<_C ontainer>' being compiled
1>c:\log4cplus-1.0.2\inclu de\log4cpl us\helpers \stringhel per.h(125) : fatal error C1190: managed targeted code requires a '/clr' option
I am getting these errors
1>------ Build started: Project: log4cplus_static, Configuration: Debug Win32 ------
1>Compiling...
1>timehelper.cxx
1>c:\log4cplus-1.0.2\inclu
1>c:\log4cplus-1.0.2\inclu
1> c:\log4cplus-1.0.2\include
1>c:\log4cplus-1.0.2\inclu
1>threads.cxx
1>c:\log4cplus-1.0.2\inclu
1>c:\log4cplus-1.0.2\inclu
1> c:\log4cplus-1.0.2\include
1>c:\log4cplus-1.0.2\inclu
1>stringhelper.cxx
1>c:\log4cplus-1.0.2\inclu
1>c:\log4cplus-1.0.2\inclu
1> c:\log4cplus-1.0.2\include
1>c:\log4cplus-1.0.2\inclu
1>socketbuffer.cxx
1>socketappender.cxx
1>socket.cxx
1>socket-win32.cxx
1>sleep.cxx
1>rootlogger.cxx
1>property.cxx
1>pointer.cxx
1>patternlayout.cxx
1>c:\log4cplus-1.0.2\inclu
1>c:\log4cplus-1.0.2\inclu
1> c:\log4cplus-1.0.2\include
1>c:\log4cplus-1.0.2\inclu
1>objectregistry.cxx
1>nullappender.cxx
1>nteventlogappender.cxx
1>ndc.cxx
1>logloguser.cxx
1>loglog.cxx
1>loglevel.cxx
1>c:\log4cplus-1.0.2\inclu
1>c:\log4cplus-1.0.2\inclu
1> c:\log4cplus-1.0.2\include
1>c:\log4cplus-1.0.2\inclu
1>loggingserver.cxx
1>Generating Code...
1>Compiling...
1>loggingevent.cxx
1>loggerimpl.cxx
1>logger.cxx
1>layout.cxx
1>c:\log4cplus-1.0.2\inclu
1>c:\log4cplus-1.0.2\inclu
1> c:\log4cplus-1.0.2\include
1>c:\log4cplus-1.0.2\inclu
You have created a 'Managed C++' project, which will not be able to compile native C++ code, that's why the compiler chokes on that. Did you manaually create it or did you convert the .dsp project file?
ASKER
I converted.....
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
/Od /I "..\include" /D "_DEBUG" /D "_USRDLL" /D "WIN32" /D "_LIB" /D "_WINDOWS" /D "LOG4CPLUS_STATIC" /D "_VC80_UPGRADE=0x0700" /D "_MBCS" /FD /EHsc /RTC1 /MTd /Fp".\Debug/Static/log4cpl us_static. pch" /Fo".\Debug/Static/" /Fd".\Debug/Static/" /FR".\Debug/Static\\" /W3 /nologo /c /ZI /errorReport:prompt
no clr options
no clr options
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
COOL... could go furthur..... but still getting some errors
1>stringhelper.cxx
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572) : error C2039: 'iterator_category' : is not a member of 'log4cplus::helpers::strin g_append_i terator<_C ontainer>'
1> with
1> [
1> _Container=log4cplus::tstr ing
1> ]
1> d:\program files\microsoft visual studio 8\vc\include\algorithm(685 ) : see reference to class template instantiation 'std::iterator_traits<_Ite r>' being compiled
1> with
1> [
1> _Iter=log4cplus::helpers:: string_app end_iterat or<log4cpl us::tstrin g>
1> ]
1> c:\log4cplus-1.0.2\src\str inghelper. cxx(118) : see reference to function template instantiation '_OutIt std::transform<std::_Strin g_const_it erator<_El em,_Traits ,_Alloc>,l og4cplus:: helpers::s tring_appe nd_iterato r<_Contain er>,int(__ cdecl *)(int)>(_InIt,_InIt,_OutI t,_Fn1)' being compiled
1> with
1> [
1> _OutIt=log4cplus::helpers: :string_ap pend_itera tor<log4cp lus::tstri ng>,
1> _Elem=char,
1> _Traits=std::char_traits<c har>,
1> _Alloc=std::allocator<char >,
1> _Container=log4cplus::tstr ing,
1> _InIt=std::_String_const_i terator<ch ar,std::ch ar_traits< char>,std: :allocator <char>>,
1> _Fn1=int (__cdecl *)(int)
1> ]
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572) : error C2146: syntax error : missing ';' before identifier 'iterator_category'
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572) : error C2602: 'std::iterator_traits<_Ite r>::iterat or_categor y' is not a member of a base class of '
1>stringhelper.cxx
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572)
1> with
1> [
1> _Container=log4cplus::tstr
1> ]
1> d:\program files\microsoft visual studio 8\vc\include\algorithm(685
1> with
1> [
1> _Iter=log4cplus::helpers::
1> ]
1> c:\log4cplus-1.0.2\src\str
1> with
1> [
1> _OutIt=log4cplus::helpers:
1> _Elem=char,
1> _Traits=std::char_traits<c
1> _Alloc=std::allocator<char
1> _Container=log4cplus::tstr
1> _InIt=std::_String_const_i
1> _Fn1=int (__cdecl *)(int)
1> ]
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572)
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572)
1>d:\program files\microsoft visual studio 8\vc\include\xutility(572)