<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Muhammad,<div><br></div><div>You need to remove -Werror flag (treating warnings as errors) from CXXFLAGS (which NS-3 adds by default).  For example you can do the following for the debug mode:</div><div><br></div><div>CXXFLAGS="-O0 -g" ./waf configure</div><div>./waf</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Jan 22, 2014, at 11:37 PM, Muhammad Bilal <<a href="mailto:engr.mbilal@yahoo.com">engr.mbilal@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"><div><br></div><div class="edit-comment-hide">
            <div class="js-comment-body comment-body markdown-body markdown-format">
                <div>Hello Alex and everyone,<br>
Hope you are in best of your health.<br>
I am stuck with ndnSim installation. I followed the step given at <a href="http://ndnsim.net/getting-started.html">http://ndnsim.net/getting-started.html</a>
 . Configuration also went fine and showing ndnSim is enabled but in 
final step to build NS3 with ndnSIM (./waf) I receive following failure:</div><div><br></div>

<div>../src/ndnSIM/helper/<a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>: In static member 
function ‘static void 
ns3::ndn::GlobalRoutingHelper::CalculateRoutes(bool)’:<br>
../src/ndnSIM/helper/<a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>:248:68: error: typedef
 ‘vertex_descriptor’ locally defined but not used 
[-Werror=unused-local-typedefs]<br>
   typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor vertex_descriptor;<br>
                                                                    ^<br>
../src/ndnSIM/helper/<a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>: In static member 
function ‘static void 
ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(bool)’:<br>
../src/ndnSIM/helper/<a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>:341:68: error: typedef
 ‘vertex_descriptor’ locally defined but not used 
[-Werror=unused-local-typedefs]<br>
   typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor vertex_descriptor;<br>
                                                                    ^<br>
cc1plus: all warnings being treated as errors<br>
Waf: Leaving directory `/home/mbilal/ndnSIM/ns-3/build'<br>
Build failed<br>
 -> task in 'ns3-ndnSIM' failed (exit status 1): <br>
    {task 44914384: cxx <a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a> -> <a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>.1.o}<br>
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', 
'-Wno-error=deprecated-declarations', '-fstrict-aliasing', 
'-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', 
'-I/usr/local/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', 
'-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1',
 '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', 
'-DHAVE_GSL=1', '../src/ndnSIM/helper/<a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>', 
'-c', '-o', 'src/ndnSIM/helper/<a href="http://ndn-global-routing-helper.cc">ndn-global-routing-helper.cc</a>.1.o']</div><div><br></div>

<div>Please let me know how to fix this problem. I also tried to configure ndnSIM with NS3.17 but I faced same problem. <br>
Best Regards,<br>
Muhammad Bilal</div>
            </div>
          </div><div> <br></div></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>