[ndnSIM] ndnSIM 2.0 compiling error
marco.ulgelmo at aol.com
marco.ulgelmo at aol.com
Wed Jan 14 15:36:38 PST 2015
I've tried to compile the ns-3 module in ndnSIM for some hours.
I keep getting the error:
In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0:
../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
static std::shared_ptr<const T>
^
../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ‘std::shared_ptr<const _Tp> ns3::ndn::Convert::FromPacket(ns3::Ptr<ns3::Packet>)’ member function declared in class ‘ns3::ndn::Convert’
Convert::FromPacket(Ptr<Packet> packet)
^af
../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ‘ns3::ndn::Convert::FromPacket’ found
Convert::FromPacket<Interest>(Ptr<Packet> packet);
^
../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ‘;’ before ‘<’ token
Convert::FromPacket<Interest>(Ptr<Packet> packet);
^
../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ‘ns3::ndn::Convert::FromPacket’ found
Convert::FromPacket<Data>(Ptr<Packet> packet);
^
../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ‘;’ before ‘<’ token
Convert::FromPacket<Data>(Ptr<Packet> packet);
I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without.
I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that).
Thanks,
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150114/88581e8e/attachment.html>
More information about the ndnSIM
mailing list