[ndnSIM] a bug in the ndnSIM source code

Zongyi Zhao xinshengzzy at gmail.com
Sat Apr 26 19:34:07 PDT 2014


Hi, all,
I have just installed the ndnSIM in my ubuntu. In the process I have 
encountered some difficulty. Fortunately I have solved most of them. So 
here I want to report my discovery about the bug in the source code of 
ndnSIM.
When I executed the flowing command:
./waf configure --boost-includes=/usr/local/include 
--boost-libs=/usr/local/lib --enable-examples
./waf
The compiler told me the flowing message:

"../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member 
function ‘static void ns3::ndn::GlobalRoutingHelper::CalculateRoutes(bool)’:
../src/ndnSIM/helper/ndn-global-routing-helper.cc:248:68: error: typedef 
‘vertex_descriptor’ locally defined but not used 
[-Werror=unused-local-typedefs]
typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor 
vertex_descriptor;
^
../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member 
function ‘static void 
ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(bool)’:
../src/ndnSIM/helper/ndn-global-routing-helper.cc:341:68: error: typedef 
‘vertex_descriptor’ locally defined but not used 
[-Werror=unused-local-typedefs]
typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor 
vertex_descriptor;"

So I commented out the line 248 and line 341 in file 
/src/ndnSIM/helper/ndn-global-routing-helper.cc, then it worked well.

-- 
Zongyi Zhao




More information about the ndnSIM mailing list