[ndnSIM] ndn-strategy-choice-helper.hpp:120:50: error: invalid use of incomplete type ‘class nfd::Forwarder’
Ali Marandi
marandi at inf.unibe.ch
Fri Nov 11 03:19:10 PST 2016
Hi,
When I include a header file in forwarder.hpp, I receive the following
strange error. My header file is a ns-3 application. I look forward to
your comments.
Thanks,
Ali
In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:32:0,
from ./ns3/ndn-all.hpp:23,
from ./ns3/ndnSIM-module.h:10,
from
/home/ali/ndnSIM-test/ns-3/src/ndnSIM/utils/MyNCApp.hpp:7,
from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:43,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from
../src/ndnSIM/NFD/daemon/table/strategy-choice-entry.cpp:28:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp: In static member
function ‘static void
ns3::ndn::StrategyChoiceHelper::Install(ns3::Ptr<ns3::Node>, const
ndn::Name&)’:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120:50: error:
invalid use of incomplete type ‘class nfd::Forwarder’
nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
^
In file included from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:32:0,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from
../src/ndnSIM/NFD/daemon/table/strategy-choice-entry.cpp:28:
../src/ndnSIM/NFD/daemon/fw/face-table.hpp:34:7: error: forward
declaration of ‘class nfd::Forwarder’
class Forwarder;
^
In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:32:0,
from ./ns3/ndn-all.hpp:23,
from ./ns3/ndnSIM-module.h:10,
from
/home/ali/ndnSIM-test/ns-3/src/ndnSIM/utils/MyNCApp.hpp:7,
from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:43,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.cpp:26:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp: In static member
function ‘static void
ns3::ndn::StrategyChoiceHelper::Install(ns3::Ptr<ns3::Node>, const
ndn::Name&)’:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120:50: error:
invalid use of incomplete type ‘class nfd::Forwarder’
nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
^
In file included from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:32:0,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.cpp:26:
../src/ndnSIM/NFD/daemon/fw/face-table.hpp:34:7: error: forward
declaration of ‘class nfd::Forwarder’
class Forwarder;
^
In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:32:0,
from ./ns3/ndn-all.hpp:23,
from ./ns3/ndnSIM-module.h:10,
from
/home/ali/ndnSIM-test/ns-3/src/ndnSIM/utils/MyNCApp.hpp:7,
from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:43,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/best-route-strategy2.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/best-route-strategy2.cpp:26:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp: In static member
function ‘static void
ns3::ndn::StrategyChoiceHelper::Install(ns3::Ptr<ns3::Node>, const
ndn::Name&)’:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120:50: error:
invalid use of incomplete type ‘class nfd::Forwarder’
nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
^
In file included from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:32:0,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/best-route-strategy2.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/best-route-strategy2.cpp:26:
../src/ndnSIM/NFD/daemon/fw/face-table.hpp:34:7: error: forward
declaration of ‘class nfd::Forwarder’
class Forwarder;
^
In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:32:0,
from ./ns3/ndn-all.hpp:23,
from ./ns3/ndnSIM-module.h:10,
from
/home/ali/ndnSIM-test/ns-3/src/ndnSIM/utils/MyNCApp.hpp:7,
from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:43,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-fixed.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-fixed.cpp:26:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp: In static member
function ‘static void
ns3::ndn::StrategyChoiceHelper::Install(ns3::Ptr<ns3::Node>, const
ndn::Name&)’:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120:50: error:
invalid use of incomplete type ‘class nfd::Forwarder’
nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
^
In file included from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:32:0,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-fixed.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-fixed.cpp:26:
../src/ndnSIM/NFD/daemon/fw/face-table.hpp:34:7: error: forward
declaration of ‘class nfd::Forwarder’
class Forwarder;
^
In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:32:0,
from ./ns3/ndn-all.hpp:23,
from ./ns3/ndnSIM-module.h:10,
from
/home/ali/ndnSIM-test/ns-3/src/ndnSIM/utils/MyNCApp.hpp:7,
from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:43,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-exponential.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-exponential.cpp:26:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp: In static member
function ‘static void
ns3::ndn::StrategyChoiceHelper::Install(ns3::Ptr<ns3::Node>, const
ndn::Name&)’:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120:50: error:
invalid use of incomplete type ‘class nfd::Forwarder’
nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
^
In file included from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:32:0,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/retx-suppression.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-exponential.hpp:29,
from
../src/ndnSIM/NFD/daemon/fw/retx-suppression-exponential.cpp:26:
../src/ndnSIM/NFD/daemon/fw/face-table.hpp:34:7: error: forward
declaration of ‘class nfd::Forwarder’
class Forwarder;
^
In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:32:0,
from ./ns3/ndn-all.hpp:23,
from ./ns3/ndnSIM-module.h:10,
from
/home/ali/ndnSIM-test/ns-3/src/ndnSIM/utils/MyNCApp.hpp:7,
from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:43,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/ncc-strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/ncc-strategy.cpp:26:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp: In static member
function ‘static void
ns3::ndn::StrategyChoiceHelper::Install(ns3::Ptr<ns3::Node>, const
ndn::Name&)’:
./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:120:50: error:
invalid use of incomplete type ‘class nfd::Forwarder’
nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
^
In file included from ../src/ndnSIM/NFD/daemon/fw/forwarder.hpp:32:0,
from ../src/ndnSIM/NFD/daemon/fw/strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/ncc-strategy.hpp:29,
from ../src/ndnSIM/NFD/daemon/fw/ncc-strategy.cpp:26:
../src/ndnSIM/NFD/daemon/fw/face-table.hpp:34:7: error: forward
declaration of ‘class nfd::Forwarder’
class Forwarder;
^
Waf: Leaving directory `/home/ali/ndnSIM-test/ns-3/build'
Build failed
More information about the ndnSIM
mailing list