[ndnSIM] Debugging error

Alex Afanasyev aa at cs.fiu.edu
Mon Feb 6 10:44:04 PST 2023


Unfortunately, you cannot do such things with C++... you created multiple duplicate compilation units.

For changes that are part of ndnSIM (changes in forwarder.cpp/hpp), you cannot use extensions in the scenario repo.  Extensions are for **additional** functionality or anything that can modify functionality within available APIs (separate strategies, processing, etc.).  If you are trying to do changes to the core, you would have to do it in the core itself.

-
Alex

> On Feb 4, 2023, at 7:27 PM, Sai Gautam Mandapati <saigautam96 at gmail.com> wrote:
> 
> Hi everyone,
> 
> I'm getting an error of msg = "log component "ndn-cxx.nfd.accessstrategy" has already been registered once" when I'm trying to run my scenario. 
> 
> Brief idea: So, I want to use forwarder.cpp and forwarder.hpp in my scenario as I made some changes there and linked them to my current scenario, but when I link them and run my code, I get a 
> 
> Fatal error: #include "face-table.hpp" no such file or directory. So, to avoid the fatal error, all the .cc and .h files from "fw" folder and pasted into my extensions folder. 
> 
> When I rerun my simulation, it gives me the error mentioned above.
> 
> Do you know how I can fix this error?  
> 
> -- 
> Sai Gautam



More information about the ndnSIM mailing list