[ndnSIM] a bug in the ndnSIM source code

L.Zeynalvand zeynalvand at ce.sharif.edu
Sun Apr 27 10:58:45 PDT 2014


hi Zongyi,
NdnSIM requires boost version at least 1.48.  Ubuntu 12.04 ships with 
two versions of boost libraries and it is known that if both are 
installed, then compilation of ndnSIM will most likely fail.
maybe that's your problem, but I'm afraid commenting out a line or two 
wont really solve your problem.

Regards.
-- 
Leonid Zeynalvand
M.Sc Information Technology
Sharif University of Technology


On 27.04.2014 07:04, Zongyi Zhao wrote:
> 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.




More information about the ndnSIM mailing list