[ndnSIM] Some warnings in compiling step of ndnSIM (v0.5 RC1)

Alex Afanasyev alexander.afanasyev at ucla.edu
Sat Aug 3 17:31:47 PDT 2013


Hi!

Thanks for catching this!  I have pushed an update that should resolve this issue.  

Technically it is a harmless warning which could be ignored if not the "-Werror" flag which NS-3 set by default. 

---
Alex

On Aug 3, 2013, at 12:40 AM, "Prasertsak U." <gniliamg at gmail.com> wrote:

> Dear Alex,
> 
> Today, I try to investigate the new release of ndnSIM (v0.5 RC1). 
> I got some errors in compiling step. (In fact, it is some Warning)
> 
> cc1plus: warnings being treated as errors
> /opt/local/include/boost/archive/iterators/transform_width.hpp: In copy constructor ‘boost::archive::iterators::transform_width<Base, BitsOut, BitsIn, CharType>::transform_width(const boost::archive::iterators::transform_width<Base, BitsOut, BitsIn, CharType>&) [with Base = boost::transform_iterator<ns3::ndn::detail::hex_to_4_bit<char>, __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::use_default, boost::use_default>, int BitsOut = 8, int BitsIn = 4, CharType = char]’:
> ../src/ndnSIM/ndn.cxx/detail/uri.h:111:   instantiated from ‘static void ns3::ndn::Uri::fromEscaped(Iterator1, Iterator1, Iterator2) [with Iterator1 = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Iterator2 = std::back_insert_iterator<ns3::ndn::name::Component>]’
> ../src/ndnSIM/ndn.cxx/name-component.cc:51:   instantiated from here
> /opt/local/include/boost/archive/iterators/transform_width.hpp:104: warning: ‘boost::archive::iterators::transform_width<boost::transform_iterator<ns3::ndn::detail::hex_to_4_bit<char>, __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::use_default, boost::use_default>, 8, 4, char>::m_remaining_bits’ will be initialized after
> /opt/local/include/boost/archive/iterators/transform_width.hpp:101: warning:   ‘char boost::archive::iterators::transform_width<boost::transform_iterator<ns3::ndn::detail::hex_to_4_bit<char>, __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::use_default, boost::use_default>, 8, 4, char>::m_buffer_in’
> /opt/local/include/boost/archive/iterators/transform_width.hpp:119: warning:   when initialized here
> Waf: Leaving directory `/Users/Psaku/Workspace/ndnSIM-0.5/ns-3/build'
> Build failed
> 
>  
> My environment :
> - OS X 10.8
> - Boost Library 1.53
> - Python 2.7 
> - GCC 4.2.1
> - C++ 4.2 
> 
> Regards,
> 
> Prasertsak U.
> Silpakorn University, Thailand.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130803/aee24504/attachment.html>


More information about the ndnSIM mailing list