[log] Setup Windows event log backends

Hi, I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/sink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with: 1> main.cpp 1> Linking to lib file: boost_filesystem-vc110-mt-gd-1_54.lib 1> Linking to lib file: boost_system-vc110-mt-gd-1_54.lib 1> Linking to lib file: boost_log-vc110-mt-gd-1_54.lib 1> Linking to lib file: boost_thread-vc110-mt-gd-1_54.lib 1> Linking to lib file: boost_log_setup-vc110-mt-gd-1_54.lib 1> Linking to lib file: boost_date_time-vc110-mt-gd-1_54.lib 1> Linking to lib file: boost_chrono-vc110-mt-gd-1_54.lib But I have some link problems: 1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::basic_si mple_event_log_backend<char>(void)" (__imp_??0?$basic_simple_event_log_backend@D@sinks@v2_mt_nt5@log@boost@@QAE@ XZ) referenced in function "class boost::shared_ptr<class boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> > __cdecl boost::make_shared<class boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> >(void)" (??$make_shared@V?$basic_simple_event_log_backend@D@sinks@v2_mt_nt5@log@boos t@@@boost@@YA?AV?$shared_ptr@V?$basic_simple_event_log_backend@D@sinks@v2_mt _nt5@log@boost@@@0@XZ) 1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::~basic_s imple_event_log_backend<char>(void)" (__imp_??1?$basic_simple_event_log_backend@D@sinks@v2_mt_nt5@log@boost@@QAE@ XZ) referenced in function "public: void * __thiscall boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::`scalar deleting destructor'(unsigned int)" (??_G?$basic_simple_event_log_backend@D@sinks@v2_mt_nt5@log@boost@@QAEPAXI@Z ) 1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::set_even t_type_mapper(class boost::log::v2_mt_nt5::aux::light_function<enum boost::log::v2_mt_nt5::sinks::event_log::event_type __cdecl(class boost::log::v2_mt_nt5::record_view const &)> const &)" (__imp_?set_event_type_mapper@?$basic_simple_event_log_backend@D@sinks@v2_mt _nt5@log@boost@@QAEXABV?$light_function@$$A6A?AW4event_type@event_log@sinks@ v2_mt_nt5@log@boost@@ABVrecord_view@456@@Z@aux@345@@Z) referenced in function "void __cdecl init_logging(void)" (?init_logging@@YAXXZ) 1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::consume( class boost::log::v2_mt_nt5::record_view const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?consume@?$basic_simple_event_log_backend@D@sinks@v2_mt_nt5@log@boost @@QAEXABVrecord_view@345@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocat or@D@2@@std@@@Z) referenced in function "protected: void __thiscall boost::log::v2_mt_nt5::sinks::basic_formatting_sink_frontend<char>::feed_rec ord<class boost::log::v2_mt_nt5::aux::fake_mutex,class boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> >(class boost::log::v2_mt_nt5::record_view const &,class boost::log::v2_mt_nt5::aux::fake_mutex &,class boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char> &)" (??$feed_record@Vfake_mutex@aux@v2_mt_nt5@log@boost@@V?$basic_simple_event_l og_backend@D@sinks@345@@?$basic_formatting_sink_frontend@D@sinks@v2_mt_nt5@l og@boost@@IAEXABVrecord_view@234@AAVfake_mutex@aux@234@AAV?$basic_simple_eve nt_log_backend@D@1234@@Z) What is wrong? Thanks

On Thursday 04 July 2013 14:51:19 Renato Forti wrote:
Hi,
I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/sink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with:
What is wrong?
You may have compiled the library without event log support. This happens when the build system doesn't find message compiler in your PATH. When you build Boost.Log, it should say: - message-compiler : yes

Well, this is true: - zlib : no (cached) - iconv (libc) : no (cached) - iconv (separate) : no (cached) - icu : no (cached) - icu (lib64) : no (cached) - message-compiler : no (cached) - compiler-supports-ssse3 : yes (cached) - compiler-supports-avx2 : yes (cached) - gcc visibility : no (cached) - long double support : yes (cached) But how to fix? Thanks? -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 15:32 Para: boost@lists.boost.org Assunto: Re: [boost] [log] Setup Windows event log backends On Thursday 04 July 2013 14:51:19 Renato Forti wrote:
Hi,
I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/s ink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with:
What is wrong?
You may have compiled the library without event log support. This happens when the build system doesn't find message compiler in your PATH. When you build Boost.Log, it should say: - message-compiler : yes _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On Thursday 04 July 2013 16:15:49 Renato Forti wrote:
Well, this is true:
- zlib : no (cached) - iconv (libc) : no (cached) - iconv (separate) : no (cached) - icu : no (cached) - icu (lib64) : no (cached) - message-compiler : no (cached) - compiler-supports-ssse3 : yes (cached) - compiler-supports-avx2 : yes (cached) - gcc visibility : no (cached) - long double support : yes (cached)
But how to fix? Thanks?
Just make sure mc.exe is in the PATH env. variable. Usually it is sufficient to open MSVC command line prompt and start the build from there. Also make sure you delete bin.v2 before you start the build. Otherwise, I'm afraid, the cached check results will get used instead of running the detection again.

Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :( - message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved. No cached! I am on Windows 8, and vc11! Thanks again! -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 16:27 Para: boost@lists.boost.org Assunto: Re: [boost] RES: [log] Setup Windows event log backends On Thursday 04 July 2013 16:15:49 Renato Forti wrote:
Well, this is true:
- zlib : no (cached) - iconv (libc) : no (cached) - iconv (separate) : no (cached) - icu : no (cached) - icu (lib64) : no (cached) - message-compiler : no (cached) - compiler-supports-ssse3 : yes (cached) - compiler-supports-avx2 : yes (cached) - gcc visibility : no (cached) - long double support : yes (cached)
But how to fix? Thanks?
Just make sure mc.exe is in the PATH env. variable. Usually it is sufficient to open MSVC command line prompt and start the build from there. Also make sure you delete bin.v2 before you start the build. Otherwise, I'm afraid, the cached check results will get used instead of running the detection again. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On Thu, Jul 4, 2013 at 11:38 PM, Renato Forti <re.tf@acm.org> wrote:
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :(
- message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes
C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved.
No cached! I am on Windows 8, and vc11! Thanks again!
Hm, that's strange. Perhaps, a Win 8 thing? What does bin.v2/config.log say?

config.log: ...found 8 targets... ...updating 7 targets... common.mkdir bin.v2 common.mkdir bin.v2\libs common.mkdir bin.v2\libs\context common.mkdir bin.v2\libs\context\config common.mkdir bin.v2\libs\context\config\msvc-11.0 common.mkdir bin.v2\libs\context\config\msvc-11.0\debug compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\32.obj 32.cpp ...updated 7 targets... ...found 2 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\arm.obj arm.cpp C:\boost_1_54_0\libs\context\config\arm.cpp(12) : fatal error C1189: #error : "Not ARM" call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\context\config\msvc-11.0\debug\arm.obj.rsp" ...failed compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\arm.obj... ...failed updating 1 target... ...found 2 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\mips1.obj mips1.cpp C:\boost_1_54_0\libs\context\config\mips1.cpp(10) : fatal error C1189: #error : "Not MIPS1" call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\context\config\msvc-11.0\debug\mips1.obj.rsp" ...failed compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\mips1.obj... ...failed updating 1 target... ...found 2 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\power.obj power.cpp C:\boost_1_54_0\libs\context\config\power.cpp(13) : fatal error C1189: #error : "Not PPC" call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\context\config\msvc-11.0\debug\power.obj.rsp" ...failed compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\power.obj... ...failed updating 1 target... ...found 2 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\sparc.obj sparc.cpp C:\boost_1_54_0\libs\context\config\sparc.cpp(10) : fatal error C1189: #error : "Not SPARC" call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\context\config\msvc-11.0\debug\sparc.obj.rsp" ...failed compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\sparc.obj... ...failed updating 1 target... ...found 2 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\x86.obj x86.cpp ...updated 1 target... ...found 12 targets... ...updating 7 targets... common.mkdir bin.v2\libs\regex common.mkdir bin.v2\libs\regex\build common.mkdir bin.v2\libs\regex\build\msvc-11.0 common.mkdir bin.v2\libs\regex\build\msvc-11.0\debug compile-c-c++ bin.v2\libs\regex\build\msvc-11.0\debug\has_icu_test.obj has_icu_test.cpp libs\regex\build\has_icu_test.cpp(12) : fatal error C1083: Cannot open include file: 'unicode/uversion.h': No such file or directory call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-11.0\debug\has_icu_test.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-11.0\debug\has_icu_test.obj... ...skipped <pbin.v2\libs\regex\build\msvc-11.0\debug>has_icu.exe for lack of <pbin.v2\libs\regex\build\msvc-11.0\debug>has_icu_test.obj... ...failed updating 1 target... ...skipped 1 target... ...updated 4 targets... ...skipped <pbin.v2\libs\regex\build\msvc-11.0\debug>has_icu.pdb for lack of <pbin.v2\libs\regex\build\msvc-11.0\debug>has_icu_test.obj... ...skipped 1 target... don't know how to make <pbin.v2\standalone\ac-object(c-scanner)@1969>main.cpp ...found 11 targets... ...updating 6 targets... ...can't find 1 target... ...can't make 3 targets... common.mkdir bin.v2\standalone common.mkdir bin.v2\standalone\ac common.mkdir bin.v2\standalone\ac\msvc-11.0 common.mkdir bin.v2\standalone\ac\msvc-11.0\debug common.mkdir bin.v2\standalone\ac\msvc-11.0\debug\threading-multi ...skipped <pbin.v2\standalone\ac\msvc-11.0\debug\threading-multi>main.obj for lack of <pbin.v2\standalone\ac-object(c-scanner)@1969>main.cpp... ...skipped <pbin.v2\standalone\ac\msvc-11.0\debug\threading-multi>zlib.exe for lack of <pbin.v2\standalone\ac\msvc-11.0\debug\threading-multi>main.obj... ...skipped 2 targets... ...updated 6 targets... ...skipped <pbin.v2\standalone\ac\msvc-11.0\debug\threading-multi>zlib.pdb for lack of <pbin.v2\standalone\ac\msvc-11.0\debug\threading-multi>main.obj... ...skipped 1 target... ...found 5 targets... ...updating 2 targets... ...can't make 3 targets... common.mkdir bin.v2\standalone\ac\msvc-11.0\debug\link-static common.mkdir bin.v2\standalone\ac\msvc-11.0\debug\link-static\threading-multi ...skipped <pbin.v2\standalone\ac\msvc-11.0\debug\link-static\threading-multi>main.obj for lack of <pbin.v2\standalone\ac-object(c-scanner)@1969>main.cpp... ...skipped <pbin.v2\standalone\ac\msvc-11.0\debug\link-static\threading-multi>zlib.exe for lack of <pbin.v2\standalone\ac\msvc-11.0\debug\link-static\threading-multi>main.obj. .. ...skipped 2 targets... ...updated 2 targets... ...skipped <pbin.v2\standalone\ac\msvc-11.0\debug\link-static\threading-multi>zlib.pdb for lack of <pbin.v2\standalone\ac\msvc-11.0\debug\link-static\threading-multi>main.obj. .. ...skipped 1 target... ...found 9 targets... ...updating 7 targets... common.mkdir bin.v2\libs\locale common.mkdir bin.v2\libs\locale\build common.mkdir bin.v2\libs\locale\build\msvc-11.0 common.mkdir bin.v2\libs\locale\build\msvc-11.0\debug compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_iconv_libc_ob compile-c-c++ j.obj has_iconv.cpp libs\locale\src\..\build\has_iconv.cpp(8) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\locale\build\msvc-11.0\debug\has_iconv_libc_obj.obj.rsp" ...failed compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_iconv_libc_obj.obj... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_iconv.exe for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_iconv_libc_obj.obj... ...failed updating 1 target... ...skipped 1 target... ...updated 4 targets... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_iconv.pdb for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_iconv_libc_obj.obj... ...skipped 1 target... ...found 3 targets... ...updating 3 targets... compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_iconv_libc_ex compile-c-c++ t.obj has_iconv.cpp libs\locale\src\..\build\has_iconv.cpp(8) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\locale\build\msvc-11.0\debug\has_iconv_libc_ext.obj.rsp" ...failed compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_iconv_libc_ext.obj... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_external_iconv.exe for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_iconv_libc_ext.obj... ...failed updating 1 target... ...skipped 1 target... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_external_iconv.pdb for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_iconv_libc_ext.obj... ...skipped 1 target... ...found 5 targets... ...updating 3 targets... compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_icu_obj.obj has_icu_test.cpp libs\locale\src\..\build\has_icu_test.cpp(12) : fatal error C1083: Cannot open include file: 'unicode/uversion.h': No such file or directory call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\locale\build\msvc-11.0\debug\has_icu_obj.obj.rsp" ...failed compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_icu_obj.obj... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu.exe for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu_obj.obj... ...failed updating 1 target... ...skipped 1 target... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu.pdb for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu_obj.obj... ...skipped 1 target... ...found 3 targets... ...updating 3 targets... compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_icu64_obj.obj has_icu_test.cpp libs\locale\src\..\build\has_icu_test.cpp(12) : fatal error C1083: Cannot open include file: 'unicode/uversion.h': No such file or directory call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\locale\build\msvc-11.0\debug\has_icu64_obj.obj.rsp" ...failed compile-c-c++ bin.v2\libs\locale\build\msvc-11.0\debug\has_icu64_obj.obj... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu64.exe for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu64_obj.obj... ...failed updating 1 target... ...skipped 1 target... ...skipped <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu64.pdb for lack of <pbin.v2\libs\locale\build\msvc-11.0\debug>has_icu64_obj.obj... ...skipped 1 target... don't know how to make <pbin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off-object(res -scanner)@2331>simple_event_log.rc ...found 11 targets... ...updating 8 targets... ...can't find 1 target... ...can't make 1 target... common.mkdir bin.v2\libs\log common.mkdir bin.v2\libs\log\config common.mkdir bin.v2\libs\log\config\message-compiler common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0 common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0\debug common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off msvc.compile.mc bin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off\simple_event _log.h MC: Compiling libs\log\src\simple_event_log.mc ...skipped <pbin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off>simple_eve nt_log_res.obj for lack of <pbin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off-object(res -scanner)@2331>simple_event_log.rc... ...skipped 1 target... ...updated 8 targets... ...found 7 targets... ...updating 5 targets... common.mkdir bin.v2\libs\log\config\x86-ext common.mkdir bin.v2\libs\log\config\x86-ext\msvc-11.0 common.mkdir bin.v2\libs\log\config\x86-ext\msvc-11.0\debug common.mkdir bin.v2\libs\log\config\x86-ext\msvc-11.0\debug\pch-off compile-c-c++ bin.v2\libs\log\config\x86-ext\msvc-11.0\debug\pch-off\sss compile-c-c++ e3.obj ssse3.cpp ...updated 5 targets... ...found 3 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\log\config\x86-ext\msvc-11.0\debug\pch-off\avx compile-c-c++ 2.obj avx2.cpp ...updated 1 target... ...found 6 targets... ...updating 5 targets... common.mkdir bin.v2\libs\math common.mkdir bin.v2\libs\math\config common.mkdir bin.v2\libs\math\config\msvc-11.0 common.mkdir bin.v2\libs\math\config\msvc-11.0\debug compile-c-c++ bin.v2\libs\math\config\msvc-11.0\debug\has_gcc_visibility compile-c-c++ .obj has_gcc_visibility.cpp libs\math\config\has_gcc_visibility.cpp(7) : fatal error C1189: #error : "This is a GCC specific test case". call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\math\config\msvc-11.0\debug\has_gcc_visibility.obj.rsp" ...failed compile-c-c++ bin.v2\libs\math\config\msvc-11.0\debug\has_gcc_visibility.obj... ...failed updating 1 target... ...updated 4 targets... ...found 42 targets... ...updating 1 target... compile-c-c++ bin.v2\libs\math\config\msvc-11.0\debug\has_long_double_su compile-c-c++ pport.obj has_long_double_support.cpp ...updated 1 target... ...found 1 target... ...updating 1 target... config-cache.write bin.v2/project-cache.jam ...updated 1 target... -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 16:46 Para: boost@lists.boost.org Assunto: Re: [boost] RES: RES: [log] Setup Windows event log backends On Thu, Jul 4, 2013 at 11:38 PM, Renato Forti <re.tf@acm.org> wrote:
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :(
- message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes
C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved.
No cached! I am on Windows 8, and vc11! Thanks again!
Hm, that's strange. Perhaps, a Win 8 thing? What does bin.v2/config.log say? _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On Fri, Jul 5, 2013 at 12:21 AM, Renato Forti <re.tf@acm.org> wrote:
config.log:
don't know how to make <pbin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off-object(res -scanner)@2331>simple_event_log.rc ...found 11 targets... ...updating 8 targets... ...can't find 1 target... ...can't make 1 target... common.mkdir bin.v2\libs\log common.mkdir bin.v2\libs\log\config common.mkdir bin.v2\libs\log\config\message-compiler common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0 common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0\debug common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off msvc.compile.mc bin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off\simple_event _log.h MC: Compiling libs\log\src\simple_event_log.mc ...skipped <pbin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off>simple_eve nt_log_res.obj for lack of <pbin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off-object(res -scanner)@2331>simple_event_log.rc... ...skipped 1 target...
It seems like you have some problems with resource compiler (rc.exe). I just downloaded clean 1.54 release, ran bootstrap.bat and b2 and it compiled successfully (with event log support). So I don't think that something is fundamentally broken in Boost.Build. I'm on Windows 7 though, MSVC 11 x64. Please verify that your MSVC installation is not broken somehow and rc.exe is available. Also, if you have some custom user-config.jam in your build or home directory, you may want to try deleting it and building with the default settings.

Hi, just to inform: I tried to build on another machine, also with windows 8, and VC11 (no update), did not work! I will try on windows 7 and vc 11 update 3. I let you know the result. Thanks -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 16:46 Para: boost@lists.boost.org Assunto: Re: [boost] RES: RES: [log] Setup Windows event log backends On Thu, Jul 4, 2013 at 11:38 PM, Renato Forti <re.tf@acm.org> wrote:
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :(
- message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes
C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved.
No cached! I am on Windows 8, and vc11! Thanks again!
Hm, that's strange. Perhaps, a Win 8 thing? What does bin.v2/config.log say? _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On 7/5/2013 7:32 AM, Renato Forti wrote:
Hi, just to inform: I tried to build on another machine, also with windows 8, and VC11 (no update), did not work! I will try on windows 7 and vc 11 update 3. I let you know the result.
Please do not top post. That is basic mailing list etiquette.

Mc is on my path: C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved. usage: MC [-?aAbcdnouUv] [-m <length>] [-h <path>] [-e <extension>] [-r <path>] [-x <path>] [-w <file>] [-W <file>] [-z <basename> ] [-km | -um | -generateProjections | -cs <namespace>] [-mof] [-p <prefix>] [-P <prefix>] [<filename.man>] [<filename.mc>] -? - displays this message -a - input file is ANSI (default). -A - messages in .BIN file should be ANSI. -b - .BIN filename should have .mc filename included for un iqueness. -c - sets the Customer bit in all of the message Ids. -d - FACILTY and SEVERITY values in header file in decimal. Sets message values in header to decimal initially. -e <extension> - Specify the extension for the header file (1-3 chars) -h <path> - gives the path of where to create the C include file Default is .\ -m <length> - generate a warning if the size of any message exceeds <length> characters. -n - terminates all strings with null's in the message tabl es. -o - generate OLE2 header file (use HRESULT definition inst ead of status code definition) -r <path> - gives the path of where to create the RC include file and the binary message resource files it includes. Default is .\ -s <path> - generate binary resource per provider generate summary global resource MCGenResource.BIN -t <path> - validate against baseline resource -u - input file is Unicode. -U - messages in .BIN file should be Unicode (default). -v - gives verbose output. -W <file> - specifies path to winmeta.xml file. -w <file> - specifies path to eventman.xsd file. -x <path> - gives the path of where to create the .dbg C include file that maps message Ids to their symbolic name. This option can only be used with message text file. -z <basename> - gives the base name of the generated files. Default is basename of input file. <filename.man> - gives the name of manifest file to compile <filename.mc> - gives the name of a message file to compile Code Generation Options ----------------------- -km - generate Kernel Mode logging macros -um - generate User Mode logging macros -generateProjections - generate logging interfaces projectable to Java Sc ript -cs <namespace> - generate C# (managed) logging class based on FX3.5 Eventing class -css <namespace> - generate static C# (managed) logging class based on FX3.5 Eventing class -co - add callout macro to invoke user code at loggin. not availalbe for c#, and ignored. -mof - generate downlevel support for all function/macros generated. MOF file will be generated from the manifest. MOF file will be placed in the location specified by the "-h" switch. -p <prefix> - defines the macro name prefix applied to each generated logging macro. Default is "EventWrite" -P <prefix> - defines the text at the start of each event symbol name to remove before forming the macro nam es. Default is NULL. Note: Switches 'w' and 'W' are not required and will be removed in future . Note: At most one .mc and/or one .man file can be processed in one invoca tion. Note: Generated files have the Archive bit cleared. C:\boost_1_54_0> Thanks -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 15:32 Para: boost@lists.boost.org Assunto: Re: [boost] [log] Setup Windows event log backends On Thursday 04 July 2013 14:51:19 Renato Forti wrote:
Hi,
I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/s ink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with:
What is wrong?
You may have compiled the library without event log support. This happens when the build system doesn't find message compiler in your PATH. When you build Boost.Log, it should say: - message-compiler : yes _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Andrey Semashev
-
Edward Diener
-
Renato Forti