Amruth Gudigar
unread,Jul 18, 2024, 6:21:15 AM (4 days ago) Jul 18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
./ns3 run scratch/Third/third.cc --vis
[0/2] Re-checking globbed directories...
ninja: no work to do.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/amruth/ns-allinone-3.41/ns-3.41/build/bindings/python/visualizer/__init__.py", line 5, in <module>
ns.cppyy.cppdef(
File "/home/amruth/ns-allinone-3.41/ns-3.41/ns3env/lib/python3.12/site-packages/cppyy/__init__.py", line 206, in cppdef
raise SyntaxError('Failed to parse the given C++ code%s' % err.err)
SyntaxError: Failed to parse the given C++ code
input_line_65:1:103: error: invalid operands to binary expression ('Ptr<ns3::MobilityModel>' and 'int')
using namespace ns3; bool hasMobilityModel(Ptr<Node> node){ return !(node->GetObject<MobilityModel>() == 0); };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/ipv4-address.h:378:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv4Address' for 1st argument
operator==(const Ipv4Address& a, const Ipv4Address& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/ipv4-address.h:415:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv4Mask' for 1st argument
operator==(const Ipv4Mask& a, const Ipv4Mask& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/mac8-address.h:167:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Mac8Address' for 1st argument
bool operator==(const Mac8Address& a, const Mac8Address& b);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/ipv6-address.h:655:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv6Address' for 1st argument
operator==(const Ipv6Address& a, const Ipv6Address& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/ipv6-address.h:673:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv6Prefix' for 1st argument
operator==(const Ipv6Prefix& a, const Ipv6Prefix& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/mac48-address.h:222:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Mac48Address' for 1st argument
operator==(const Mac48Address& a, const Mac48Address& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/mac16-address.h:238:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Mac16Address' for 1st argument
operator==(const Mac16Address& a, const Mac16Address& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/utils/mac64-address.h:194:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Mac64Address' for 1st argument
operator==(const Mac64Address& a, const Mac64Address& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/internet/model/ipv4-routing-table-entry.h:191:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv4RoutingTableEntry' for 1st argument
bool operator==(const Ipv4RoutingTableEntry a, const Ipv4RoutingTableEntry b);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/internet/model/ipv4-routing-table-entry.h:289:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv4MulticastRoutingTableEntry' for 1st argument
bool operator==(const Ipv4MulticastRoutingTableEntry a, const Ipv4MulticastRoutingTableEntry b);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/wimax/model/cid.h:101:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Cid' for 1st argument
bool operator==(const Cid& lhs, const Cid& rhs);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/wifi/model/wifi-mode.h:211:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::WifiMode' for 1st argument
bool operator==(const WifiMode& a, const WifiMode& b);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/event-id.h:157:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::EventId' for 1st argument
operator==(const EventId& a, const EventId& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/nstime.h:857:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Time' for 1st argument
operator==(const Time& lhs, const Time& rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/type-id.h:627:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'ns3::TypeId' for 1st argument
operator==(TypeId a, TypeId b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/scheduler.h:240:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const Scheduler::EventKey' for 1st argument
operator==(const Scheduler::EventKey& a, const Scheduler::EventKey& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/scheduler.h:321:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const Scheduler::Event' for 1st argument
operator==(const Scheduler::Event& a, const Scheduler::Event& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/length.h:759:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Length' for 1st argument
bool operator==(const Length& left, const Length& right);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/network/model/address.h:288:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Address' for 1st argument
bool operator==(const Address& a, const Address& b);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/internet/model/ipv4-interface-address.h:206:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv4InterfaceAddress' for 1st argument
operator==(const Ipv4InterfaceAddress& a, const Ipv4InterfaceAddress& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/internet/model/ipv6-interface-address.h:250:1: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::Ipv6InterfaceAddress' for 1st argument
operator==(const Ipv6InterfaceAddress& a, const Ipv6InterfaceAddress& b)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/internet/model/tcp-rate-ops.h:279:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const TcpRateLinux::TcpRateSample' for 1st argument
bool operator==(const TcpRateLinux::TcpRateSample& lhs, const TcpRateLinux::TcpRateSample& rhs);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/internet/model/tcp-rate-ops.h:287:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const TcpRateLinux::TcpRateConnection' for 1st argument
bool operator==(const TcpRateLinux::TcpRateConnection& lhs,
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/spectrum/model/wifi-spectrum-value-helper.h:357:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::FrequencyRange' for 1st argument
bool operator==(const FrequencyRange& lhs, const FrequencyRange& rhs);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/flow-monitor/model/ipv4-flow-classifier.h:120:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const Ipv4FlowClassifier::FiveTuple' for 1st argument
bool operator==(const Ipv4FlowClassifier::FiveTuple& t1, const Ipv4FlowClassifier::FiveTuple& t2);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/flow-monitor/model/ipv6-flow-classifier.h:121:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const Ipv6FlowClassifier::FiveTuple' for 1st argument
bool operator==(const Ipv6FlowClassifier::FiveTuple& t1, const Ipv6FlowClassifier::FiveTuple& t2);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/wifi/model/fcfs-wifi-queue-scheduler.h:48:6: note: candidate function not viable: no known conversion from 'Ptr<ns3::MobilityModel>' to 'const ns3::FcfsPrio' for 1st argument
bool operator==(const FcfsPrio& lhs, const FcfsPrio& rhs);
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:472:1: note: candidate template ignored: could not match 'const T2 *' against 'int'
operator==(const Ptr<T1>& lhs, T2 const* rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:472:1: note: candidate template ignored: could not match 'Ptr<type-parameter-0-0>' against 'int'
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:479:1: note: candidate template ignored: could not match 'const T1 *' against 'Ptr<ns3::MobilityModel>'
operator==(T1 const* lhs, Ptr<T2>& rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:479:1: note: candidate template ignored: could not match 'const T1 *' against 'int'
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:500:1: note: candidate template ignored: could not match 'Ptr<type-parameter-0-1>' against 'int'
operator==(const Ptr<T1>& lhs, const Ptr<T2>& rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:500:1: note: candidate template ignored: could not match 'Ptr<type-parameter-0-0>' against 'int'
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:514:1: note: candidate template ignored: requirement 'std::is_same_v<int, nullptr_t>' was not satisfied [with T1 = ns3::MobilityModel, T2 = int]
operator==(const Ptr<T1>& lhs, T2 rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/ptr.h:514:1: note: candidate template ignored: could not match 'Ptr<type-parameter-0-0>' against 'int'
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/traced-value.h:343:1: note: candidate template ignored: could not match 'TracedValue' against 'Ptr'
operator==(const TracedValue<T>& lhs, const TracedValue<U>& rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/traced-value.h:343:1: note: candidate template ignored: could not match 'TracedValue<type-parameter-0-0>' against 'int'
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/traced-value.h:352:1: note: candidate template ignored: could not match 'TracedValue' against 'Ptr'
operator==(const TracedValue<T>& lhs, const U& rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/traced-value.h:352:1: note: candidate template ignored: could not match 'TracedValue<type-parameter-0-0>' against 'int'
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/traced-value.h:361:1: note: candidate template ignored: could not match 'TracedValue<type-parameter-0-0>' against 'int'
operator==(const U& lhs, const TracedValue<T>& rhs)
^
/home/amruth/ns-allinone-3.41/ns-3.41/src/core/model/traced-value.h:361:1: note: candidate template ignored: could not match 'TracedValue' against 'Ptr'
malloc_consolidate(): unaligned fastbin chunk detected
Command 'build/scratch/Third/ns3.41-third-default --SimulatorImplementationType=ns3::VisualSimulatorImpl' died with <Signals.SIGABRT: 6>.
I am trying to run Inbuild Third.cc file with Visualizer but it si throwing this error
Can anyone tell me what to