[ndnSIM] error: using typedef-name ‘ndn::nfd::LocalControlHeader’ after ‘class’

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Wed Oct 19 10:16:08 PDT 2016


Hi,

I am sorry, but I need more context to understand what is wrong. 

For me, ndnSIM compiled just fine and also Travis CI compiled ndnSIM successfully after the latest commit.

Have you cloned ndnSIM with the recursive flag on?

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Oct 19, 2016, at 9:53 AM, Carl Zu <carlzu8 at gmail.com> wrote:
> 
> Hi Spyridon,
> 
> In fact, now I have the following errors:
> 
> I look forward to your help.
> 
> Thanks,
> C
> 
> In file included from ./ns3/ndnSIM/helper/ndn-fib-helper.hpp:29:0,
>                  from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:31,
>                  from ./ns3/ndn-all.hpp:23,
>                  from ./ns3/ndnSIM-module.h:10,
>                  from ../src/ndnSIM/examples/ndn-tree-app-delay-tracer.cpp:24:
> ns3/ndnSIM/ndn-cxx/management/nfd-control-parameters.hpp:77:34: error: reference to ‘ndn’ is ambiguous
>  class ControlParameters : public ndn::mgmt::ControlParameters
>                                   ^
> In file included from ns3/ndnSIM/ndn-cxx/interest.hpp:25:0,
>                  from ./ns3/ndnSIM/model/ndn-common.hpp:28,
>                  from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:23,
>                  from ./ns3/ndn-all.hpp:23,
>                  from ./ns3/ndnSIM-module.h:10,
>                  from ../src/ndnSIM/examples/ndn-tree-app-delay-tracer.cpp:24:
> ns3/ndnSIM/ndn-cxx/common.hpp:88:15: note: candidates are: namespace ndn { }
>  namespace ndn {
>                ^
> In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:23:0,
>                  from ./ns3/ndn-all.hpp:23,
>                  from ./ns3/ndnSIM-module.h:10,
>                  from ../src/ndnSIM/examples/ndn-tree-app-delay-tracer.cpp:24:
> ./ns3/ndnSIM/model/ndn-common.hpp:44:15: note:                 namespace ns3::ndn { }
>  namespace ndn {
>                ^
> In file included from ./ns3/ndnSIM/helper/ndn-fib-helper.hpp:29:0,
>                  from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:31,
>                  from ./ns3/ndn-all.hpp:23,
>                  from ./ns3/ndnSIM-module.h:10,
>                  from ../src/ndnSIM/examples/ndn-tree-app-delay-tracer.cpp:24:
> ns3/ndnSIM/ndn-cxx/management/nfd-control-parameters.hpp:77:34: error: reference to ‘ndn’ is ambiguous
>  class ControlParameters : public ndn::mgmt::ControlParameters
>                                   ^
> 
> 
> 
> On Wed, Oct 19, 2016 at 10:38 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
> Hi Spyridon,
> 
> Actually, today I reinstalled ndnSIM2.1 and the problem is still there...Could you please give me some more guidance ?
> 
> Thanks.
> 
> On Tue, Oct 18, 2016 at 6:19 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
> Hi,
> 
> my guess is that you are using a version of ndn-cxx incompatible with the version of NFD and ndnSIM.
> 
> Which version of ndnSIM are you using?
> 
> Thanks,
> 
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
> Internet Research Laboratory
> Computer Science Department
> UCLA
> 
>> On Oct 18, 2016, at 8:50 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>> 
>> Hi everyone,
>> 
>> the two lines below are the last lines from the definition of the interest class:
>> 
>>  nfd::LocalControlHeader m_localControlHeader;
>>   friend class nfd::LocalControlHeader;
>> 
>> But they cause the errors below for me. Can anybody give me some guidance please. 
>> 
>> Thanks in advance and regards.
>> 
>> 
>> In file included from ns3/ndnSIM/NFD/common.hpp:87:0,
>>                  from ns3/ndnSIM/NFD/core/counter.hpp:29,
>>                  from ../src/ndnSIM/NFD/daemon/face/transport.hpp:29,
>>                  from ../src/ndnSIM/NFD/daemon/face/face.hpp:29,
>>                  from ../src/ndnSIM/examples/ndn-load-balancer/random-load-balancer-strategy.hpp:30,
>>                  from ../src/ndnSIM/examples/ndn-load-balancer/random-load-balancer-strategy.cpp:26:
>> ns3/ndnSIM/ndn-cxx/interest.hpp:527:21: error: using typedef-name ‘ndn::nfd::LocalControlHeader’ after ‘class’
>>    friend class nfd::LocalControlHeader;
>>                      ^
>> In file included from ns3/ndnSIM/ndn-cxx/interest.hpp:30:0,
>>                  from ns3/ndnSIM/NFD/common.hpp:87,
>>                  from ns3/ndnSIM/NFD/core/counter.hpp:29,
>>                  from ../src/ndnSIM/NFD/daemon/face/transport.hpp:29,
>>                  from ../src/ndnSIM/NFD/daemon/face/face.hpp:29,
>>                  from ../src/ndnSIM/examples/ndn-load-balancer/random-load-balancer-strategy.hpp:30,
>>                  from ../src/ndnSIM/examples/ndn-load-balancer/random-load-balancer-strategy.cpp:26:
>> ns3/ndnSIM/ndn-cxx/management/nfd-local-control-header.hpp:31:43: note: ‘ndn::nfd::LocalControlHeader’ has a previous declaration here
>>  typedef ndn::lp::LocalControlHeaderFacade LocalControlHeader;
>>                                            ^
>> In file included from ns3/ndnSIM/NFD/common.hpp:87:0,
>>                  from ns3/ndnSIM/NFD/core/counter.hpp:29,
>>                  from ../src/ndnSIM/NFD/daemon/face/transport.hpp:29,
>>                  from ../src/ndnSIM/NFD/daemon/face/face.hpp:29,
>>                  from ../src/ndnSIM/examples/ndn-load-balancer/random-load-balancer-strategy.hpp:30,
>>                  from ../src/ndnSIM/examples/ndn-load-balancer/random-load-balancer-strategy.cpp:26:
>> ns3/ndnSIM/ndn-cxx/interest.hpp:527:3: error: friend declaration does not name a class or function
>>    friend class nfd::LocalControlHeader;
>>    ^
> 
> 
> 

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


More information about the ndnSIM mailing list