Bug 1560

Summary: src/mpi/examples/nms-p2p-nix-distributed.cc doesn't compile with clang
Product: ns-3 Reporter: Brian Swenson <bswenson3>
Component: mpiAssignee: Brian Swenson <bswenson3>
Status: RESOLVED FIXED    
Severity: normal CC: joshpelkey, ns-bugs, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: All   
Attachments: patch to change length-fixed array to vector
Updated patch

Description Brian Swenson 2012-12-19 18:47:02 UTC
clang wants all arrays to have const lengths; this eliminates
possibility to use CommandLine to change values in this example. 

Script needs to be rewritten to remove variable-length arrays.  Temporary fix in place for pending release.
Comment 1 Zeheng Chen 2013-05-17 18:49:45 UTC
Created attachment 1600 [details]
patch to change length-fixed array to vector

Apply this to src/mpi/examples/nms-p2p-nix-distributed.cc

-Zeheng Chen
Comment 2 Brian Swenson 2013-12-13 16:44:19 UTC
Created attachment 1735 [details]
Updated patch

Thanks for the patch.  You missed a few instances with NodeContainer and the NetdeviceContainers at the bottom.  Updated.
Comment 3 Brian Swenson 2013-12-13 16:49:56 UTC
10522:fc88dcae9999