< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] Build issue undefining RESIP_USE_STL_STREAMS


Thanks for pointing this out Dario!

I have fixed this on master by removing use of std::setfill and std::setw.

Best Regards,
Scott Godin

On Tue, May 26, 2015 at 4:50 AM, Dario Bozzali <Dario.Bozzali@xxxxxxxxxxx> wrote:

Hello,

I’ve got last revision of reSIProcate sources and I found an issue undefining RESIP_USE_STL_STREAMS in rutil/resipfaststreams.hxx while compiling resip/stack/GenericPidfContents.cxx using Visual C++ 2013.

I report below the output generated by Visual Studio. The error is produced inside generateTimestampData() method by the following line:

ds << gmt.tm_year + 1900 << "-" << setfill('0') << setw(2) << gmt.tm_mon + 1 << "-" << setfill('0') << setw(2) << gmt.tm_mday << "T" << setfill('0') << setw(2) << gmt.tm_hour << ":" << setfill('0') << setw(2) << gmt.tm_min << ":" << setfill('0') << setw(2) << gmt.tm_sec << "Z";

 

1>  GenericPidfContents.cxx

1>GenericPidfContents.cxx(708): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::_Fillobj<char>' (or there is no acceptable conversion)

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(310): could be 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(std::ostream &(__cdecl *)(std::ostream &))'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(292): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(const void *)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(260): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(double)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(253): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(float)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(233): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(UInt64)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(213): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(Int64)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(194): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(unsigned long)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(175): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(long)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(157): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(UInt32)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(139): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(Int32)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(133): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(UInt16)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(127): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(Int16)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(120): or       'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(bool)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Subsystem.hxx(62): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::Subsystem &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/XMLCursor.hxx(185): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::XMLCursor::Node &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/XMLCursor.hxx(180): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::XMLCursor &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Timer.hxx(233): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::TimerWithPayload &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Timer.hxx(228): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::TransactionTimer &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Timer.hxx(222): or       'std::ostream &resip::operator <<(std::ostream &,const resip::TimerWithPayload &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Timer.hxx(217): or       'std::ostream &resip::operator <<(std::ostream &,const resip::TransactionTimer &)'

1>          c:\github\resiprocate\master\resiprocate\resip\stack\Cookie.hxx(22): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::Cookie &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/Tuple.hxx(280): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::Tuple &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/SecurityAttributes.hxx(100): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::SecurityAttributes &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/Message.hxx(66): or       'std::ostream &resip::operator <<(std::ostream &,const resip::Message::Brief &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/Message.hxx(63): or       'std::ostream &resip::operator <<(std::ostream &,const resip::Message &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/Message.hxx(59): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::Message::Brief &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/Message.hxx(56): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::Message &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/ParserCategory.hxx(300): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::ParserCategory &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/LazyParser.hxx(161): or       'std::ostream &resip::operator <<(std::ostream &,const resip::LazyParser &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/LazyParser.hxx(156): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::LazyParser &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/HeaderFieldValue.hxx(95): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,resip::HeaderFieldValue &)'

1>          C:\GitHub\resiprocate\master\resiprocate\resip/stack/QValueParameter.hxx(127): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::QValue &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/BaseException.hxx(41): or       'std::ostream &resip::operator <<(std::ostream &,const resip::BaseException &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/BaseException.hxx(39): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::BaseException &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Data.hxx(995): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const resip::Data &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/Data.hxx(993): or       'std::ostream &resip::operator <<(std::ostream &,const resip::Data &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(381): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const std::string &)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(374): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const signed char *)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(367): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,signed char)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(360): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const unsigned char *)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(353): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,unsigned char)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(346): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,char)'

1>          C:\GitHub\resiprocate\master\resiprocate\rutil/resipfaststreams.hxx(339): or       'resip::ResipFastOStream &resip::operator <<(resip::ResipFastOStream &,const char *)'

1>          while trying to match the argument list '(resip::ResipFastOStream, std::_Fillobj<char>)'

 

How could we change the code to fix it?

Best regards,

Dario


_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel