[log] Build fail : log (1.44.0) on vc 11 using cxxflags=-Zc:wchar_t-

Hi All, I need use cxxflags=-Zc:wchar_t-, because I will use boost with my QT project! I build boost like this (debug in this case): bjam toolset=msvc-11.0 variant=debug threading=multi link=shared cxxflags=-Zc:wchar_t- But log lib fail with this: call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"..\..\..\bin.v2\libs\log\build\msvc-11.0\debug\threading-mul ti\formatter_parser.obj.rsp" ...failed compile-c-c++ ..\..\..\bin.v2\libs\log\build\msvc-11.0\debug\threading -multi\formatter_parser.obj... ...skipped <p..\..\..\bin.v2\libs\log\build\msvc-11.0\debug\threading-multi>boos t_log_setup-vc110-mt-gd-1_54.dll for lack of <p..\..\..\bin.v2\libs\log\build\ms vc-11.0\debug\threading-multi>boost_log-vc110-mt-gd-1_54.lib... ...skipped <p..\..\..\bin.v2\libs\log\build\msvc-11.0\debug\threading-multi>boos t_log_setup-vc110-mt-gd-1_54.lib for lack of <p..\..\..\bin.v2\libs\log\build\ms vc-11.0\debug\threading-multi>boost_log-vc110-mt-gd-1_54.lib... ...skipped <p..\..\..\bin.v2\libs\log\build\msvc-11.0\debug\threading-multi>boos t_log_setup-vc110-mt-gd-1_54.pdb for lack of <p..\..\..\bin.v2\libs\log\build\ms vc-11.0\debug\threading-multi>boost_log-vc110-mt-gd-1_54.lib... ...failed updating 4 targets... ...skipped 6 targets... Anyone can helpeme? Thanks

On Thu, Jul 4, 2013 at 5:16 PM, Renato Forti <re.tf@acm.org> wrote:
Hi All,
I need use cxxflags=-Zc:wchar_t-, because I will use boost with my QT project!
Anyone can helpeme? Thanks
If I'm not mistaken, Boost builds with native wchar_t by default. I'm not sure if fake wchar_t is even supported by Boost. Regarding Boost.Log, I did not add any special support for fake wchar_t, it may or may not work. If it doesn't, your best bet is to disable wchar_t support in Boost.Log by defining BOOST_LOG_WITHOUT_WCHAR_T during the Boost and your application build time.

Thanks for help! Don't compile too, I receive a lot of errors like: C:\boost_1_54_0\boost/spirit/home/qi/detail/parse.hpp(32) : error C2338: error_i nvalid_expression C:\boost_1_54_0\boost/spirit/home/qi/parse.hpp(36) : see reference to cl ass template instantiation 'boost::spirit::qi::detail::parse_impl<Expr>' being c ompiled with [ Expr=boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_ri ght,boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto: :tagns_::tag::shift_right,boost::proto::argsns_::list2<const boost::proto::exprn s_::expr<boost::proto::tagns_::tag::shift_right,boost::proto::argsns_::list2 <con st boost::proto::exprns_::expr<boost::proto::tagns_::tag::negate,boost::proto:: a rgsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwi se_or,boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::prot o::tagns_::tag::bitwise_or,boost::proto::argsns_::list2<const boost::proto::expr ns_::expr<boost::proto::tagns_::tag::bitwise_or,boost::proto::argsns_::list2 <con st boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal,boost::proto : :argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit,boost::fus ion: :vector1<unsigned short>>>,0> &,const boost::proto::exprns_::expr<boost::proto:: tagns_::tag::terminal,boost::proto::argsns_::term<boost::spirit::terminal_ex <boo st::spirit::tag::lit,boost::fusion::vector1<unsigned short>>>,0> &>,2> &,const b oost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal,boost::proto: :arg sns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit,boost::fusion: :vec tor1<unsigned short>>>,0> &>,2> &,const boost::proto::exprns_::expr<boost::proto ::tagns_::tag::terminal,boost::proto::argsns_::term<boost::spirit::terminal_ ex<b oost::spirit::tag::lit,boost::fusion::vector1<unsigned short>>>,0> &>,2> &>,1> & ,const boost::proto::exprns_::expr<boost::proto::tagns_::tag::negate,boost::prot o::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::s ubscript,boost::proto::argsns_::list2<const boost::spirit::terminal<boost::spiri t::tag::uint_> &,boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal ,boost::proto::argsns_::term<const boost::log::v2_mt_nt5::as_action_adapter<boos t::log::v2_mt_nt5::binder1st<boost::log::v2_mt_nt5::assign_fun,unsigned int &>> &>,0>>,2> &>,1> &>,2> &,const boost::proto::exprns_::expr<boost::proto::tagns_:: tag::negate,boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost ::proto::tagns_::tag::shift_right,boost::proto::argsns_::list2<const boost::prot o::exprns_::expr<boost::proto::tagns_::tag::terminal,boost::proto::argsns_:: term <boost::spirit::terminal_ex<boost::spirit::tag::lit,boost::fusion::vector1<u nsig ned short>>>,0> &,const boost::spirit::terminal<boost::spirit::tag::uint_> &>,2> &>,1> &>,2> &,const boost::proto::exprns_::expr<boost::proto::tagns_::tag::term inal,boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::t ag:: lit,boost::fusion::vector1<unsigned short>>>,0> &>,2> ] C:\boost_1_54_0\boost/spirit/home/qi/parse.hpp(36) : error C2039: 'call' : is no t a member of 'boost::spirit::qi::detail::parse_impl<Expr>' with [ Expr=boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_ri ght,boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto: :tagns_::tag::shift_right,boost::proto::argsns_::list2<const boost::proto::exprn s_::expr<boost::proto::tagns_::tag::shift_right,boost::proto::argsns_::list2 <con st boost::proto::exprns_::expr<boost::proto::tagns_::tag::negate,boost::proto:: a rgsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwi se_or,boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::prot o::tagns_::tag::bitwise_or,boost::proto::argsns_::list2<const boost::proto::expr ns_::expr<boost::proto::tagns_::tag::bitwise_or,boost::proto::argsns_::list2 <con st boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal,boost::proto : :argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit,boost::fus ion: :vector1<unsigned short>>>,0> &,const boost::proto::exprns_::expr<boost::proto:: tagns_::tag::terminal,boost::proto::argsns_::term<boost::spirit::terminal_ex <boo st::spirit::tag::lit,boost::fusion::vector1<unsigned short>>>,0> &>,2> &,const b oost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal,boost::proto: :arg sns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit,boost::fusion: :vec tor1<unsigned short>>>,0> &>,2> &,const boost::proto::exprns_::expr<boost::proto ::tagns_::tag::terminal,boost::proto::argsns_::term<boost::spirit::terminal_ ex<b oost::spirit::tag::lit,boost::fusion::vector1<unsigned short>>>,0> &>,2> &>,1> & ,const boost::proto::exprns_::expr<boost::proto::tagns_::tag::negate,boost::prot o::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::s ubscript,boost::proto::argsns_::list2<const boost::spirit::terminal<boost::spiri t::tag::uint_> &,boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal ,boost::proto::argsns_::term<const boost::log::v2_mt_nt5::as_action_adapter<boos t::log::v2_mt_nt5::binder1st<boost::log::v2_mt_nt5::assign_fun,unsigned int &>> &>,0>>,2> &>,1> &>,2> &,const boost::proto::exprns_::expr<boost::proto::tagns_:: tag::negate,boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost ::proto::tagns_::tag::shift_right,boost::proto::argsns_::list2<const boost::prot o::exprns_::expr<boost::proto::tagns_::tag::terminal,boost::proto::argsns_:: term <boost::spirit::terminal_ex<boost::spirit::tag::lit,boost::fusion::vector1<u nsig ned short>>>,0> &,const boost::spirit::terminal<boost::spirit::tag::uint_> &>,2> &>,1> &>,2> &,const boost::proto::exprns_::expr<boost::proto::tagns_::tag::term inal,boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::t ag:: lit,boost::fusion::vector1<unsigned short>>>,0> &>,2> ] C:\boost_1_54_0\boost/spirit/home/qi/parse.hpp(36) : error C3861: 'call': identi fier not found call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\log\build\msvc-11.0\debug\threading-multi\text_f ile_backend.obj.rsp" ...failed compile-c-c++ bin.v2\libs\log\build\msvc-11.0\debug\threading-multi\te Any other sugestion? 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 10:34 Para: boost@lists.boost.org Assunto: Re: [boost] [log] Build fail : log (1.44.0) on vc 11 using cxxflags=-Zc:wchar_t- On Thu, Jul 4, 2013 at 5:16 PM, Renato Forti <re.tf@acm.org> wrote:
Hi All,
I need use cxxflags=-Zc:wchar_t-, because I will use boost with my QT project!
Anyone can helpeme? Thanks
If I'm not mistaken, Boost builds with native wchar_t by default. I'm not sure if fake wchar_t is even supported by Boost. Regarding Boost.Log, I did not add any special support for fake wchar_t, it may or may not work. If it doesn't, your best bet is to disable wchar_t support in Boost.Log by defining BOOST_LOG_WITHOUT_WCHAR_T during the Boost and your application build time. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On Thu, Jul 4, 2013 at 7:10 PM, Renato Forti <re.tf@acm.org> wrote:
Thanks for help!
Don't compile too, I receive a lot of errors like:
Any other sugestion? Thanks!
Now it breaks in Boost.Spirit parser for paths. I haven't looked too deep, so I can't tell how to fix this. Right now I can only suggest to use native wchar_t.

Ok, 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 12:59 Para: boost@lists.boost.org Assunto: Re: [boost] RES: [log] Build fail : log (1.44.0) on vc 11 using cxxflags=-Zc:wchar_t- On Thu, Jul 4, 2013 at 7:10 PM, Renato Forti <re.tf@acm.org> wrote:
Thanks for help!
Don't compile too, I receive a lot of errors like:
Any other sugestion? Thanks!
Now it breaks in Boost.Spirit parser for paths. I haven't looked too deep, so I can't tell how to fix this. Right now I can only suggest to use native wchar_t. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Just for the record, I checked the latest version of QT (5.1) and now its uses wchat_t, and works properly with boost log! QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t 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 12:59 Para: boost@lists.boost.org Assunto: Re: [boost] RES: [log] Build fail : log (1.44.0) on vc 11 using cxxflags=-Zc:wchar_t- On Thu, Jul 4, 2013 at 7:10 PM, Renato Forti <re.tf@acm.org> wrote:
Thanks for help!
Don't compile too, I receive a lot of errors like:
Any other sugestion? Thanks!
Now it breaks in Boost.Spirit parser for paths. I haven't looked too deep, so I can't tell how to fix this. Right now I can only suggest to use native wchar_t. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On 7/4/2013 12:52 PM, Renato Forti wrote:
Just for the record, I checked the latest version of QT (5.1) and now its uses wchat_t, and works properly with boost log!
QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t
Qt since at least 4.6.3 can be built with native wchar_t, and works well with boost. The pre-built Qt libs were defaulted to not use native. Jeff
participants (3)
-
Andrey Semashev
-
Jeff Flinn
-
Renato Forti