I am trying to run a simulation but I keep getting some kind of error. I am not an expert on C++, but I think it's due to header file include. I am getting the following error:
error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
void OutInterest(Ptr<const ns3::ndn::InterestHeader> interestHeader,Ptr<const ns3::ndn::Face> face) {
^
../scratch/vndn_simulation.cc:87:52: error: template argument 1 is invalid
void OutInterest(Ptr<const ns3::ndn::InterestHeader> interestHeader,Ptr<const ns3::ndn::Face> face) {
^
../scratch/vndn_simulation.cc:87:28: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
void OutInterest(Ptr<const ns3::ndn::InterestHeader> interestHeader,Ptr<const ns3::ndn::Face> face) {
Any idea on how to solve this error?
It says here:
that you cannot forward declare
NameComponents
because the compiler has already seen that it is atypedef
and not a class.