[ndnSIM] Error with Instantiating an object to call class DummyPib's function
Walter Swift
waltersw3606 at gmail.com
Sun Dec 5 00:48:35 PST 2021
Dear everyone,
I'm trying to use dummy-keychain's function to make a key, the following is
a snippet of my program:
::ndn::security::DummyPib dp;
auto id = dp.getIdentities();
and receive an error message while compiling:
../src/ndnSIM/apps/ndn-producer.cpp: In member function ‘virtual void
ns3::ndn::Producer::StartApplication()’:
../src/ndnSIM/apps/ndn-producer.cpp:96:29: error: no matching function for
call to ‘ndn::security::DummyPib::DummyPib()’
96 | ::ndn::security::DummyPib dp;
| ^~
In file included from ../src/ndnSIM/apps/ndn-producer.cpp:39:
../src/ndnSIM/utils/dummy-keychain.hpp:50:12: note: candidate:
‘ndn::security::DummyPib::DummyPib(const string&)’
50 | explicit DummyPib(const std::string& locator);
| ^~~~~~~~
../src/ndnSIM/utils/dummy-keychain.hpp:50:12: note: candidate expects 1
argument, 0 provided
However, it has no problem when calling other class like Identity:
::ndn::security::pib::Identity id;
Please help me with this problem.
Sincerely yours,
Walter Swift
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20211205/54df76ab/attachment.html>
More information about the ndnSIM
mailing list