Ns3.45 and m_linkChannels and m_linkIDs

12 views
Skip to first unread message

Manny-Gilgal

unread,
Mar 10, 2026, 1:44:24 PM (3 days ago) Mar 10
to ns-3-users
Does anyone know why I am getting the following errors. I am using ns3.45 :

/ns-3.45/examples/tutorial/third.cc:133:28: error: ‘m_linkChannels’ was not declared in this scope
  133 |     for (const auto& str : m_linkChannels)
      |                            ^~~~~~~~~~~~~~
ns-3.45/examples/tutorial/third.cc:149:30: error: ‘m_linkIds’ was not declared in this scope; did you mean ‘linkId’?
  149 |     for (const auto& links : m_linkIds)
      |                              ^~~~~~~~~
      |                              linkId
ns-3.45/examples/tutorial/third.cc:157:68: error: ‘m_linkChannels’ was not declared in this scope
  157 |             phyHelper.Set(linkId++, "ChannelSettings", StringValue(m_linkChannels.at(id)));
      |                                                                    ^~~~~~~~~~~~~~
ns-3.45/examples/tutorial/third.cc:165:36: error: ‘m_staDevices’ was not declared in this scope; did you mean ‘csmaDevices’?
  165 |                     SsidValue(Ssid(m_staDevices.GetN() == 0 ? "ns-3-ssid" : "default")),
      |                                    ^~~~~~~~~~~~
      |                                    csmaDevices
ns-3.45/examples/tutorial/third.cc:169:31: error: ‘m_assocType’ was not declared in this scope
  169 |                     EnumValue(m_assocType));

Reply all
Reply to author
Forward
0 new messages