[Boost.Log] compilation on msvc 2010 fail.

Hi all, i try to compile Boost.Log for msvc 2010. But it somehow fails. Please see the errors below. Is the msvc-10.0 compiler supported? Thanks for any comments Regards, Kim compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\event_log_backend.obj event_log_backend.cpp .\boost/log/detail/universal_path.hpp(46) : error C2039: 'external_string_type' : is not a member of 'boost::filesystem3::path' .\boost/filesystem/v3/path.hpp(54) : see declaration of 'boost::filesyst em3::path' .\boost/log/detail/universal_path.hpp(46) : error C2065: 'external_string_type' : undeclared identifier .\boost/log/detail/universal_path.hpp(49) : error C3203: 'is_same' : unspecializ ed class template can't be used as a template argument for template parameter 'T 1', expected a real type .\boost/log/detail/universal_path.hpp(49) : error C2955: 'boost::is_same' : use of class template requires template argument list .\boost/type_traits/is_same.hpp(37) : see declaration of 'boost::is_same ' .\boost/log/detail/universal_path.hpp(49) : error C2955: 'boost::mpl::if_' : use of class template requires template argument list .\boost/mpl/if.hpp(56) : see declaration of 'boost::mpl::if_' .\boost/log/detail/universal_path.hpp(53) : error C2039: 'basic_path' : is not a member of 'boost::filesystem' .\boost/log/detail/universal_path.hpp(53) : error C2065: 'basic_path' : undeclar ed identifier .\boost/log/detail/universal_path.hpp(53) : error C2988: unrecognizable template declaration/definition .\boost/log/detail/universal_path.hpp(53) : error C2059: syntax error : 'const' .\boost/log/detail/universal_path.hpp(64) : error C2143: syntax error : missing ';' before '<' .\boost/log/detail/universal_path.hpp(64) : error C2913: explicit specialization ; 'boost::log_mt_nt5::aux::make_path' is not a specialization of a class templat e .\boost/log/detail/universal_path.hpp(64) : error C2059: syntax error : '<' .\boost/log/detail/universal_path.hpp(65) : error C2143: syntax error : missing ';' before '{' .\boost/log/detail/universal_path.hpp(65) : error C2447: '{' : missing function header (old-style formal list?) .\boost/log/detail/universal_path.hpp(74) : error C2913: explicit specialization ; 'boost::log_mt_nt5::aux::make_path' is not a specialization of a class templat e .\boost/log/sinks/event_log_backend.hpp(963) : error C2061: syntax error : ident ifier 'basic_path' .\boost/log/sinks/event_log_backend.hpp(1048) : see reference to class t emplate instantiation 'boost::log_mt_nt5::sinks::basic_event_log_backend<CharT>' being compiled .\boost/log/sinks/event_log_backend.hpp(1042) : warning C4346: 'boost::log_mt_nt 5::aux::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type .\boost/log/sinks/event_log_backend.hpp(1042) : error C2061: syntax error : iden tifier 'universal_path' libs\log\src\event_log_backend.cpp(494) : error C2275: 'boost::log_mt_nt5::aux:: universal_path' : illegal use of this type as an expression libs\log\src\event_log_backend.cpp(494) : warning C4346: 'boost::log_mt_nt5::aux ::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type libs\log\src\event_log_backend.cpp(494) : error C2143: syntax error : missing ') ' before 'const' libs\log\src\event_log_backend.cpp(494) : error C2182: 'construct' : illegal use of type 'void' libs\log\src\event_log_backend.cpp(494) : error C2350: 'boost::log_mt_nt5::sinks ::basic_event_log_backend<CharT>::construct' is not a static member libs\log\src\event_log_backend.cpp(498) : error C2059: syntax error : ')' libs\log\src\event_log_backend.cpp(532) : error C2143: syntax error : missing '; ' before '{' libs\log\src\event_log_backend.cpp(532) : error C2447: '{' : missing function he ader (old-style formal list?) ..\boost/log/sinks/event_log_backend.hpp(963) : error C2039: 'basic_path' : is no t a member of 'boost::filesystem' libs\log\src\event_log_backend.cpp(612) : see reference to class templat e instantiation 'boost::log_mt_nt5::sinks::basic_event_log_backend<CharT>' being compiled with [ CharT=char ] ..\boost/log/sinks/event_log_backend.hpp(963) : error C2039: 'basic_path' : is no t a member of 'boost::filesystem' ..\boost/log/sinks/event_log_backend.hpp(963) : error C2061: syntax error : ident ifier 'basic_path' ..\boost/log/sinks/event_log_backend.hpp(963) : error C2039: 'basic_path' : is no t a member of 'boost::filesystem' libs\log\src\event_log_backend.cpp(616) : see reference to class templat e instantiation 'boost::log_mt_nt5::sinks::basic_event_log_backend<CharT>' being compiled with [ CharT=wchar_t ] ..\boost/log/sinks/event_log_backend.hpp(963) : error C2039: 'basic_path' : is no t a member of 'boost::filesystem' ..\boost/log/sinks/event_log_backend.hpp(963) : error C2061: syntax error : ident ifier 'basic_path' call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime- link-static\threading-multi\event_log_backend.obj.rsp" ....failed compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runt ime-link-static\threading-multi\event_log_backend.obj... compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\nt6_event_log_backend.obj nt6_event_log_backend.cpp compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\debug_output_backend.obj debug_output_backend.cpp ....skipped <pbin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-st atic\threading-multi>libboost_log-vc100-mt-s-1_46_1.lib for lack of <pbin.v2\lib s\log\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi>te xt_file_backend.obj... ....skipped <pstage\lib>libboost_log-vc100-mt-s-1_46_1.lib for lack of <pbin.v2\l ibs\log\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi> libboost_log-vc100-mt-s-1_46_1.lib... compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\parser_utils.obj parser_utils.cpp compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\init_from_stream.obj init_from_stream.cpp compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\init_from_settings.obj init_from_settings.cpp ..\boost/log/detail/universal_path.hpp(46) : error C2039: 'external_string_type' : is not a member of 'boost::filesystem3::path' .\boost/filesystem/v3/path.hpp(54) : see declaration of 'boost::filesyst em3::path' ..\boost/log/detail/universal_path.hpp(46) : error C2065: 'external_string_type' : undeclared identifier ..\boost/log/detail/universal_path.hpp(49) : error C3203: 'is_same' : unspecializ ed class template can't be used as a template argument for template parameter 'T 1', expected a real type ..\boost/log/detail/universal_path.hpp(49) : error C2955: 'boost::is_same' : use of class template requires template argument list .\boost/type_traits/is_same.hpp(37) : see declaration of 'boost::is_same ' ..\boost/log/detail/universal_path.hpp(49) : error C2955: 'boost::mpl::if_' : use of class template requires template argument list .\boost/mpl/if.hpp(56) : see declaration of 'boost::mpl::if_' ..\boost/log/detail/universal_path.hpp(53) : error C2039: 'basic_path' : is not a member of 'boost::filesystem' ..\boost/log/detail/universal_path.hpp(53) : error C2065: 'basic_path' : undeclar ed identifier ..\boost/log/detail/universal_path.hpp(53) : error C2988: unrecognizable template declaration/definition ..\boost/log/detail/universal_path.hpp(53) : error C2059: syntax error : 'const' ..\boost/log/detail/universal_path.hpp(64) : error C2143: syntax error : missing ';' before '<' ..\boost/log/detail/universal_path.hpp(64) : error C2913: explicit specialization ; 'boost::log_mt_nt5::aux::make_path' is not a specialization of a class templat e ..\boost/log/detail/universal_path.hpp(64) : error C2059: syntax error : '<' ..\boost/log/detail/universal_path.hpp(65) : error C2143: syntax error : missing ';' before '{' ..\boost/log/detail/universal_path.hpp(65) : error C2447: '{' : missing function header (old-style formal list?) ..\boost/log/detail/universal_path.hpp(74) : error C2913: explicit specialization ; 'boost::log_mt_nt5::aux::make_path' is not a specialization of a class templat e ..\boost/log/sinks/text_file_backend.hpp(338) : warning C4346: 'boost::log_mt_nt5 ::aux::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type .\boost/log/sinks/text_file_backend.hpp(524) : see reference to class te mplate instantiation 'boost::log_mt_nt5::sinks::basic_text_file_backend<CharT>' being compiled ..\boost/log/sinks/text_file_backend.hpp(338) : error C2146: syntax error : missi ng ';' before identifier 'path_type' ..\boost/log/sinks/text_file_backend.hpp(338) : error C2838: 'universal_path' : i llegal qualified name in member declaration ..\boost/log/sinks/text_file_backend.hpp(338) : error C4430: missing type specifi er - int assumed. Note: C++ does not support default-int ..\boost/log/sinks/text_file_backend.hpp(509) : error C2061: syntax error : ident ifier 'path_type' ..\boost/log/sinks/text_file_backend.hpp(519) : error C2061: syntax error : ident ifier 'path_type' ..\boost/log/sinks/text_multifile_backend.hpp(62) : warning C4346: 'boost::log_mt _nt5::aux::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type .\boost/log/sinks/text_multifile_backend.hpp(137) : see reference to cla ss template instantiation 'boost::log_mt_nt5::sinks::file::file_name_composer_ad apter<FormatterT>' being compiled ..\boost/log/sinks/text_multifile_backend.hpp(62) : error C2146: syntax error : m issing ';' before identifier 'result_type' ..\boost/log/sinks/text_multifile_backend.hpp(62) : error C2838: 'universal_path' : illegal qualified name in member declaration ..\boost/log/sinks/text_multifile_backend.hpp(62) : error C4430: missing type spe cifier - int assumed. Note: C++ does not support default-int ..\boost/log/sinks/text_multifile_backend.hpp(74) : error C2653: 'result_type' : is not a class or namespace name ..\boost/log/sinks/text_multifile_backend.hpp(74) : error C2065: 'value_type' : u ndeclared identifier ..\boost/log/sinks/text_multifile_backend.hpp(77) : error C3203: 'is_same' : unsp ecialized class template can't be used as a template argument for template param eter 'T1', expected a real type ..\boost/log/sinks/text_multifile_backend.hpp(77) : error C2955: 'boost::is_same' : use of class template requires template argument list .\boost/type_traits/is_same.hpp(37) : see declaration of 'boost::is_same ' ..\boost/log/sinks/text_multifile_backend.hpp(85) : error C2653: 'result_type' : is not a class or namespace name ..\boost/log/sinks/text_multifile_backend.hpp(126) : error C2143: syntax error : missing ';' before '(' ..\boost/log/sinks/text_multifile_backend.hpp(126) : error C4430: missing type sp ecifier - int assumed. Note: C++ does not support default-int ..\boost/log/sinks/text_multifile_backend.hpp(127) : error C4430: missing type sp ecifier - int assumed. Note: C++ does not support default-int ..\boost/log/sinks/text_multifile_backend.hpp(177) : warning C4346: 'boost::log_m t_nt5::aux::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type .\boost/log/sinks/text_multifile_backend.hpp(233) : see reference to cla ss template instantiation 'boost::log_mt_nt5::sinks::basic_text_multifile_backen d<CharT>' being compiled ..\boost/log/sinks/text_multifile_backend.hpp(177) : error C2146: syntax error : missing ';' before identifier 'path_type' ..\boost/log/sinks/text_multifile_backend.hpp(177) : error C2838: 'universal_path ' : illegal qualified name in member declaration ..\boost/log/sinks/text_multifile_backend.hpp(177) : error C4430: missing type sp ecifier - int assumed. Note: C++ does not support default-int ..\boost/log/sinks/text_multifile_backend.hpp(180) : error C2065: 'path_type' : u ndeclared identifier ..\boost/log/sinks/event_log_backend.hpp(963) : error C2061: syntax error : ident ifier 'basic_path' .\boost/log/sinks/event_log_backend.hpp(1048) : see reference to class t emplate instantiation 'boost::log_mt_nt5::sinks::basic_event_log_backend<CharT>' being compiled ..\boost/log/sinks/event_log_backend.hpp(1042) : warning C4346: 'boost::log_mt_nt 5::aux::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type ..\boost/log/sinks/event_log_backend.hpp(1042) : error C2061: syntax error : iden tifier 'universal_path' libs\log\src\init_from_settings.cpp(105) : warning C4346: 'boost::log_mt_nt5::au x::universal_path' : dependent name is not a type prefix with 'typename' to indicate a type libs\log\src\init_from_settings.cpp(105) : error C2146: syntax error : missing ' ;' before identifier 'any_cast_to_path' libs\log\src\init_from_settings.cpp(105) : error C2433: 'boost::log_mt_nt5::aux: :universal_path' : 'inline' not permitted on data declarations libs\log\src\init_from_settings.cpp(105) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int libs\log\src\init_from_settings.cpp(105) : error C2377: 'boost::log_mt_nt5::aux: :universal_path' : redefinition; typedef cannot be overloaded with any other sym bol .\boost/log/detail/universal_path.hpp(49) : see declaration of 'boost::l og_mt_nt5::aux::universal_path' libs\log\src\init_from_settings.cpp(105) : error C2888: 'if_c<T1::value,T2,T3>:: type boost::log_mt_nt5::aux::universal_path' : symbol cannot be defined within n amespace 'anonymous-namespace' libs\log\src\init_from_settings.cpp(105) : error C2888: 'int boost::log_mt_nt5:: aux::universal_path' : symbol cannot be defined within namespace 'anonymous-name space' libs\log\src\init_from_settings.cpp(105) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int libs\log\src\init_from_settings.cpp(105) : error C2143: syntax error : missing ' ,' before '*' call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime- link-static\threading-multi\init_from_settings.obj.rsp" ....failed compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runt ime-link-static\threading-multi\init_from_settings.obj... compile-c-c++ bin.v2\libs\log\build\msvc-10.0\release\link-static\runtime-link-s tatic\threading-multi\filter_parser.obj filter_parser.cpp

On 05/02/2011 12:39 AM, Kim Kuen Tang wrote:
Hi all,
i try to compile Boost.Log for msvc 2010. But it somehow fails. Please see the errors below.
You seem to be trying to compile Boost.Log v1 against Boost.Filesystem v3. This won't work. Please use Boost.Log v2 (from SVN trunk).
Is the msvc-10.0 compiler supported?
MSVC 10 should be fine, the problem is not with the compiler.

Hi Andrey, thanks for your quick reply. Am 02.05.2011 09:01, schrieb Andrey Semashev:
On 05/02/2011 12:39 AM, Kim Kuen Tang wrote:
Hi all,
i try to compile Boost.Log for msvc 2010. But it somehow fails. Please see the errors below.
You seem to be trying to compile Boost.Log v1 against Boost.Filesystem v3. This won't work. Please use Boost.Log v2 (from SVN trunk).
i just added <define>BOOST_FILESYSTEM_VERSION=2 in the jamfile. This is now compiling, but is not the ideal solution? Regards, Kim
Is the msvc-10.0 compiler supported?
MSVC 10 should be fine, the problem is not with the compiler. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Hi Andrey, Am 02.05.2011 09:01, schrieb Andrey Semashev:
On 05/02/2011 12:39 AM, Kim Kuen Tang wrote:
Hi all,
i try to compile Boost.Log for msvc 2010. But it somehow fails. Please see the errors below.
You seem to be trying to compile Boost.Log v1 against Boost.Filesystem v3. This won't work. Please use Boost.Log v2 (from SVN trunk).
i did what you said and try to compile boost log from the trunk. But i still get errors. Please see below: compile-c-c++ bin.v2\libs\log\build\msvc-10.0\debug\link-static\runtime-link-sta tic\light_rw_mutex.obj light_rw_mutex.cpp libs\log\src\light_rw_mutex.cpp(153) : error C2653: 'light_rw_mutex' : is not a class or namespace name libs\log\src\light_rw_mutex.cpp(154) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int libs\log\src\light_rw_mutex.cpp(159) : error C2065: 'm_Mutex' : undeclared ident ifier libs\log\src\light_rw_mutex.cpp(160) : warning C4508: 'boost::log2_st::aux::ligh t_rw_mutex' : function should return a value; 'void' return type assumed libs\log\src\light_rw_mutex.cpp(162) : error C2653: 'light_rw_mutex' : is not a class or namespace name libs\log\src\light_rw_mutex.cpp(162) : fatal error C1903: unable to recover from previous error(s); stopping compilation call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\log\build\msvc-10.0\debug\link-static\runtime-li nk-static\light_rw_mutex.obj.rsp" ....failed compile-c-c++ bin.v2\libs\log\build\msvc-10.0\debug\link-static\runtim e-link-static\light_rw_mutex.obj... Any suggestion?
Is the msvc-10.0 compiler supported?
MSVC 10 should be fine, the problem is not with the compiler. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Andrey Semashev
-
Kim Kuen Tang