On Tue, 13 Dec 2011, Carson Dunbar wrote:
Hello again, I've been trying to make progress in creating a new router for IBR-DTN and came up against a wall in the actual inclusion to the main code. I created identical code for my router
case Configuration::TORRENT_ROUTING: { IBRCOMMON_LOGGER(info) << "Using torrent routing extensions" << IBRCOMMON_LOGGER_ENDL; router->addExtension( new dtn::routing::TorrentRoutingExtension() ); break; }
and essentially my router was a copy of the code from epidemic and flooding with some minor alterations. When I try to compile though I get the error:
Main.cpp:582: error: expected type-specifier Main.cpp:582: error: expected ‘)’ Main.cpp:582: error: no matching function for call to ‘dtn::routing::BaseRouter::addExtension(int*)’
where line 582 is the router->addExtension line from my new code.
I think you didn't #include "routing/TorrentRoutingExtension.h" to Main.cpp. Also (if not yet done) entries for TorrentRoutingExtension.h and TorrentRoutingExtension.cpp should be added to src/routing/Makefile.am and after that autoreconf is to be run from ibrdtnd-0.6.5/. directory.
Regards, Arseny Kurnikov.
participants (1)
-
Kurnikov Arseny