[Ns-bugs] [Bug 1079] New: MPI code doesn't compile
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Fri Mar 25 08:09:07 PDT 2011
http://www.nsnam.org/bugzilla/show_bug.cgi?id=1079
Summary: MPI code doesn't compile
Product: ns-3
Version: ns-3-dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: mpi
AssignedTo: riley at ece.gatech.edu
ReportedBy: jpelkey at gatech.edu
CC: ns-bugs at isi.edu
Estimated Hours: 0.0
[811/1546] cxx: src/mpi/model/mpi-interface.cc ->
build/debug/src/mpi/model/mpi-interface_1.o
../src/mpi/model/mpi-interface.cc: In static member function ‘static void
ns3::MpiInterface::ReceiveMessages()’:
../src/mpi/model/mpi-interface.cc:245:15: error: ‘pDev’ was not declared in
this scope
../src/mpi/model/mpi-interface.cc:250:7: error: ‘pDev’ was not declared in
this scope
../src/mpi/model/mpi-interface.cc:254:40: error: ‘Receive’ is not a member
of ‘ns3::MpiNetDevice’
In file included from debug/ns3/attribute.h:25:0,
from debug/ns3/nstime.h:24,
from ../src/mpi/model/mpi-interface.h:28,
from ../src/mpi/model/mpi-interface.cc:26:
debug/ns3/ptr.h: In destructor ‘ns3::Ptr<T>::~Ptr() [with T =
ns3::MpiNetDevice]’:
../src/mpi/model/mpi-interface.cc:239:25: instantiated from here
debug/ns3/ptr.h:455:7: error: ‘class ns3::MpiNetDevice’ has no member named
‘Unref’
debug/ns3/ptr.h: In member function ‘void ns3::Ptr<T>::Acquire() const [with
T = ns3::MpiNetDevice]’:
debug/ns3/ptr.h:423:3: instantiated from ‘ns3::Ptr<T>::Ptr(T*) [with T =
ns3::MpiNetDevice]’
debug/ns3/ptr.h:375:55: instantiated from ‘ns3::Ptr<T>
ns3::DynamicCast(const ns3::Ptr<T2>&) [with T1 = ns3::MpiNetDevice, T2 =
ns3::NetDevice]’
../src/mpi/model/mpi-interface.cc:245:57: instantiated from here
debug/ns3/ptr.h:410:7: error: ‘class ns3::MpiNetDevice’ has no member named
‘Ref’
Waf: Leaving directory `/home/rmovac/ns-3-allinone/ns-3-dev/build'
Build failed: -> task failed (err #1):
{task: cxx mpi-interface.cc -> mpi-interface_1.o}
================
Variable pDev was changed to pMpiDev. This is an easy enough fix; however, we
also need a smart pointer for MpiNetDevice. I tried to make it use
SimpleRefCount, but the compiler threw errors about "error: request for member
‘Unref’ is ambiguous" I'm not exactly sure how to proceed.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list