"error: ns3/simulator-module.h :no such file or directory

7,517 views
Skip to first unread message

ahmad yulianto

unread,
Dec 31, 2013, 8:01:55 AM12/31/13
to ns-3-...@googlegroups.com
Dear all; i found in http://www.nsnam.org/docs/release/3.9/tutorial/tutorial_18.html still include some ...

4.2.2 Module Includes

The code proper starts with a number of include statements.

  #include "ns3/core-module.h"
  #include "ns3/simulator-module.h"
  #include "ns3/node-module.h"
  #include "ns3/helper-module.h"
i have problem with simulator module, 

"error: ns3/simulator-module.h :no such file or directory
     error: ns3/node-module.h :no such file or directory "


and i found that  in https://groups.google.com/forum/#!topic/ns-3-users/LwJy-ApJxkU ,  and someone suggest to replace by 

"enough write only

#include "ns3/core-module.h"
#include "ns3/internet-module.h" 
"
is 

My question:  is,it really no file on /build? i mean that is it same "function" with replace ?

I have list on ns3 : 

w@linux-b6wh:~/ns-allinone-3.19/ns-3.19/build/ns3> 

"a2-a4-rsrq-handover-algorithm.h
a3-rsrp-handover-algorithm.h
aarfcd-wifi-manager.h
aarf-wifi-manager.h
abort.h
acoustic-modem-energy-model.h
acoustic-modem-energy-model-helper.h
address.h
address-utils.h
adhoc-aloha-noack-ideal-phy-helper.h
adhoc-wifi-mac.h
aloha-noack-mac-header.h
aloha-noack-net-device.h
amrr-wifi-manager.h
amsdu-subframe-header.h
angles.h
animation-interface.h
animation-interface-helper.h
antenna-model.h
antenna-module.h
aodv-dpd.h
aodv-helper.h
aodv-id-cache.h
aodv-module.h
aodv-neighbor.h
aodv-packet.h
aodv-routing-protocol.h
aodv-rqueue.h
aodv-rtable.h
application-container.h
application.h
application-packet-probe.h
applications-module.h
ap-wifi-mac.h
arf-wifi-manager.h
arp-cache.h
arp-header.h
arp-l3-protocol.h
ascii-file.h
ascii-test.h
assert.h
athstats-helper.h
attribute-accessor-helper.h
attribute-construction-list.h
attribute.h
attribute-helper.h
average.h
backoff.h
basic-data-calculators.h
basic-energy-source.h
basic-energy-source-helper.h
block-ack-agreement.h
block-ack-cache.h
block-ack-manager.h
boolean.h
boolean-probe.h
box.h
breakpoint.h
bridge-channel.h
bridge-helper.h
bridge-module.h
bridge-net-device.h
bs-net-device.h
bs-scheduler.h
bs-scheduler-rtps.h
bs-scheduler-simple.h
bs-service-flow-manager.h
bs-uplink-scheduler.h
bs-uplink-scheduler-mbqos.h
bs-uplink-scheduler-rtps.h
bs-uplink-scheduler-simple.h
buffer.h
building-allocator.h
building-container.h
building.h
building-list.h
building-position-allocator.h
buildings-helper.h
buildings-module.h
buildings-propagation-loss-model.h
bulk-send-application.h
bulk-send-helper.h
bvec.h
byte-tag-list.h
cairo-wideint-private.h
calendar-scheduler.h
callback.h
candidate-queue.h
capability-information.h
cara-wifi-manager.h
channel.h
channel-list.h
chunk.h
cid-factory.h
cid.h
click-internet-stack-helper.h
click-module.h
command-line.h
config.h
config-store-config.h
config-store.h
config-store-module.h
connection-manager.h
constant-acceleration-mobility-model.h
constant-position-mobility-model.h
constant-rate-wifi-manager.h
constant-spectrum-propagation-loss.h
constant-velocity-helper.h
constant-velocity-mobility-model.h
core-config.h
core-module.h
cosine-antenna-model.h
cost231-propagation-loss-model.h
crc32.h
crc8.h
csma-channel.h
csma-helper.h
csma-layout-module.h
csma-module.h
csma-net-device.h
csma-star-helper.h
cs-parameters.h
ctrl-headers.h
data-calculator.h
data-collection-object.h
data-collector.h
data-output-interface.h
data-rate.h
dca-txop.h
dcf.h
dcf-manager.h
default-deleter.h
default-simulator-impl.h
delay-jitter-estimation.h
deprecated.h
device-energy-model-container.h
device-energy-model.h
dl-mac-messages.h
dot11s-installer.h
dot11s-mac-header.h
double.h
double-probe.h
drop-tail-queue.h
dsdv-helper.h
dsdv-module.h
dsdv-packet.h
dsdv-packet-queue.h
dsdv-routing-protocol.h
dsdv-rtable.h
dsr-errorbuff.h
dsr-fs-header.h
dsr-gratuitous-reply-table.h
dsr-helper.h
dsr-main-helper.h
dsr-maintain-buff.h
dsr-module.h
dsr-network-queue.h
dsr-option-header.h
dsr-options.h
dsr-passive-buff.h
dsr-rcache.h
dsr-routing.h
dsr-rreq-table.h
dsr-rsendbuff.h
dsss-error-rate-model.h
edca-txop-n.h
empty.h
emu-fd-net-device-helper.h
emu-helper.h
emu-module.h
emu-net-device.h
energy-model-helper.h
energy-module.h
energy-source-container.h
energy-source.h
enum.h
epc-enb-application.h
epc-enb-s1-sap.h
epc-gtpu-header.h
epc-helper.h
epc-mme.h
epc-s11-sap.h
epc-s1ap-sap.h
epc-sgw-pgw-application.h
epc-tft-classifier.h
epc-tft.h
epc-ue-nas.h
epc-x2.h
epc-x2-header.h
epc-x2-sap.h
eps-bearer.h
eps-bearer-tag.h
error-model.h
error-rate-model.h
ethernet-header.h
ethernet-trailer.h
event-garbage-collector.h
event-id.h
event-impl.h
fatal-error.h
fatal-impl.h
fdbet-ff-mac-scheduler.h
fdmt-ff-mac-scheduler.h
fd-net-device.h
fd-net-device-helper.h
fd-net-device-module.h
fdtbfq-ff-mac-scheduler.h
ff-mac-common.h
ff-mac-csched-sap.h
ff-mac-sched-sap.h
ff-mac-scheduler.h
file-aggregator.h
file-config.h
file-helper.h
flame-header.h
flame-installer.h
flame-protocol.h
flame-protocol-mac.h
flame-rtable.h
flow-classifier.h
flow-id-tag.h
flow-monitor.h
flow-monitor-helper.h
flow-monitor-module.h
flow-probe.h
friis-spectrum-propagation-loss.h
gauss-markov-mobility-model.h
generic-phy.h
get-wildcard-matches.h
global-route-manager.h
global-route-manager-impl.h
global-router-interface.h
global-value.h
gnuplot-aggregator.h
gnuplot.h
gnuplot-helper.h
gtk-config-store.h
half-duplex-ideal-phy.h
half-duplex-ideal-phy-signal-parameters.h
hash-fnv.h
hash-function.h
hash.h
hash-murmur3.h
header.h
heap-scheduler.h
hierarchical-mobility-model.h
higher-tx-tag.h
histogram.h
ht-capabilities.h
ht-wifi-mac-helper.h
hwmp-protocol.h
hwmp-rtable.h
hybrid-buildings-propagation-loss-model.h
icmpv4.h
icmpv4-l4-protocol.h
icmpv6-header.h
icmpv6-l4-protocol.h
ideal-wifi-manager.h
ie-dot11s-beacon-timing.h
ie-dot11s-configuration.h
ie-dot11s-id.h
ie-dot11s-metric-report.h
ie-dot11s-peering-protocol.h
ie-dot11s-peer-management.h
ie-dot11s-perr.h
ie-dot11s-prep.h
ie-dot11s-preq.h
ie-dot11s-rann.h
inet6-socket-address.h
inet-socket-address.h
inet-topology-reader.h
int64x64-cairo.h
int64x64-double.h
int64x64.h
integer.h
interference-helper.h
internet-module.h
internet-stack-helper.h
internet-trace-helper.h
int-to-type.h
ipcs-classifier.h
ipcs-classifier-record.h
ip-l4-protocol.h
ipv4-address-generator.h
ipv4-address.h
ipv4-address-helper.h
ipv4-click-routing.h
ipv4-end-point.h
ipv4-flow-classifier.h
ipv4-flow-probe.h
ipv4-global-routing.h
ipv4-global-routing-helper.h
ipv4.h
ipv4-header.h
ipv4-interface-address.h
ipv4-interface-container.h
ipv4-interface.h
ipv4-l3-click-protocol.h
ipv4-l3-protocol.h
ipv4-list-routing.h
ipv4-list-routing-helper.h
ipv4-nix-vector-helper.h
ipv4-nix-vector-routing.h
ipv4-packet-info-tag.h
ipv4-packet-probe.h
ipv4-raw-socket-factory.h
ipv4-raw-socket-impl.h
ipv4-route.h
ipv4-routing-helper.h
ipv4-routing-protocol.h
ipv4-routing-table-entry.h
ipv4-static-routing.h
ipv4-static-routing-helper.h
ipv6-address-generator.h
ipv6-address.h
ipv6-address-helper.h
ipv6-extension-demux.h
ipv6-extension.h
ipv6-extension-header.h
ipv6.h
ipv6-header.h
ipv6-interface-address.h
ipv6-interface-container.h
ipv6-interface.h
ipv6-l3-protocol.h
ipv6-list-routing.h
ipv6-list-routing-helper.h
ipv6-option-header.h
ipv6-packet-info-tag.h
ipv6-packet-probe.h
ipv6-pmtu-cache.h
ipv6-raw-socket-factory.h
ipv6-route.h
ipv6-routing-helper.h
ipv6-routing-protocol.h
ipv6-routing-table-entry.h
ipv6-static-routing.h
ipv6-static-routing-helper.h
isotropic-antenna-model.h
itu-r-1238-propagation-loss-model.h
itu-r-1411-los-propagation-loss-model.h
itu-r-1411-nlos-over-rooftop-propagation-loss-model.h
jakes-process.h
jakes-propagation-loss-model.h
kun-2600-mhz-propagation-loss-model.h
li-ion-energy-source.h
list-scheduler.h
llc-snap-header.h
log.h
loopback-net-device.h
lte-amc.h
lte-anr.h
lte-anr-sap.h
lte-asn1-header.h
lte-as-sap.h
lte-common.h
lte-control-messages.h
lte-enb-cmac-sap.h
lte-enb-cphy-sap.h
lte-enb-mac.h
lte-enb-net-device.h
lte-enb-phy.h
lte-enb-phy-sap.h
lte-enb-rrc.h
lte-global-pathloss-database.h
lte-handover-algorithm.h
lte-handover-management-sap.h
lte-harq-phy.h
lte-helper.h
lte-hex-grid-enb-topology-helper.h
lte-interference.h
lte-mac-sap.h
lte-mi-error-model.h
lte-module.h
lte-net-device.h
lte-pdcp.h
lte-pdcp-header.h
lte-pdcp-sap.h
lte-pdcp-tag.h
lte-phy.h
lte-phy-tag.h
lte-radio-bearer-info.h
lte-radio-bearer-tag.h
lte-rlc-am.h
lte-rlc-am-header.h
lte-rlc.h
lte-rlc-header.h
lte-rlc-sap.h
lte-rlc-sdu-status-tag.h
lte-rlc-sequence-number.h
lte-rlc-tag.h
lte-rlc-tm.h
lte-rlc-um.h
lte-rrc-header.h
lte-rrc-protocol-ideal.h
lte-rrc-protocol-real.h
lte-rrc-sap.h
lte-sinr-chunk-processor.h
lte-spectrum-phy.h
lte-spectrum-signal-parameters.h
lte-spectrum-value-helper.h
lte-stats-calculator.h
lte-ue-cmac-sap.h
lte-ue-cphy-sap.h
lte-ue-mac.h
lte-ue-net-device.h
lte-ue-phy.h
lte-ue-phy-sap.h
lte-ue-rrc.h
lte-vendor-specific-parameters.h
mac16-address.h
mac48-address.h
mac64-address.h
mac-low.h
mac-messages.h
mac-rx-middle.h
mac-stats-calculator.h
make-event.h
map-scheduler.h
math.h
mesh-helper.h
mesh-information-element.h
mesh-information-element-vector.h
mesh-l2-routing-protocol.h
mesh-module.h
mesh-point-device.h
mesh-stack-installer.h
mesh-wifi-beacon.h
mesh-wifi-interface-mac.h
mesh-wifi-interface-mac-plugin.h
mgt-headers.h
microwave-oven-spectrum-value-helper.h
minstrel-wifi-manager.h
mobility-building-info.h
mobility-helper.h
mobility-model.h
mobility-module.h
mpi-interface.h
mpi-module.h
mpi-receiver.h
msdu-aggregator.h
multi-model-spectrum-channel.h
names.h
ndisc-cache.h
netanim-module.h
net-device-container.h
net-device.h
network-module.h
nist-error-rate-model.h
nix-vector.h
nix-vector-routing-module.h
node-container.h
node.h
node-list.h
non-communicating-net-device.h
no-op-handover-algorithm.h
nqos-wifi-mac-helper.h
ns2-mobility-helper.h
nstime.h
object-base.h
object-factory.h
object.h
object-map.h
object-ptr-container.h
object-vector.h
ocb-wifi-mac.h
ofdm-downlink-frame-prefix.h
oh-buildings-propagation-loss-model.h
okumura-hata-propagation-loss-model.h
olsr-header.h
olsr-helper.h
olsr-module.h
olsr-repositories.h
olsr-routing-protocol.h
olsr-state.h
omnet-data-output.h
onoe-wifi-manager.h
onoff-application.h
on-off-helper.h
openflow-interface.h
openflow-module.h
openflow-switch-helper.h
openflow-switch-net-device.h
orbis-topology-reader.h
originator-block-ack-agreement.h
output-stream-wrapper.h
packetbb.h
packet-burst.h
packet-data-calculators.h
packet.h
packet-loss-counter.h
packet-metadata.h
packet-probe.h
packet-sink.h
packet-sink-helper.h
packet-socket-address.h
packet-socket-factory.h
packet-socket.h
packet-socket-helper.h
packet-tag-list.h
parabolic-antenna-model.h
parallel-communication-interface.h
pcap-file.h
pcap-file-wrapper.h
pcap-test.h
peer-link-frame.h
peer-link.h
peer-management-protocol.h
pf-ff-mac-scheduler.h
phy-rx-stats-calculator.h
phy-stats-calculator.h
phy-tx-stats-calculator.h
ping6.h
ping6-helper.h
pointer.h
point-to-point-channel.h
point-to-point-dumbbell.h
point-to-point-epc-helper.h
point-to-point-grid.h
point-to-point-helper.h
point-to-point-layout-module.h
point-to-point-module.h
point-to-point-net-device.h
point-to-point-remote-channel.h
point-to-point-star.h
position-allocator.h
ppp-header.h
probe.h
propagation-cache.h
propagation-delay-model.h
propagation-environment.h
propagation-loss-model.h
propagation-module.h
pss-ff-mac-scheduler.h
ptr.h
pyviz.h
qos-tag.h
qos-utils.h
qos-wifi-mac-helper.h
queue.h
radio-bearer-stats-calculator.h
radio-bearer-stats-connector.h
radio-environment-map-helper.h
radiotap-header.h
radvd.h
radvd-helper.h
radvd-interface.h
radvd-prefix.h
random-direction-2d-mobility-model.h
random-variable.h
random-variable-stream.h
random-variable-stream-helper.h
random-walk-2d-mobility-model.h
random-waypoint-mobility-model.h
realtime-simulator-impl.h
rectangle.h
red-queue.h
ref-count-base.h
regular-wifi-mac.h
rem-spectrum-phy.h
rng-seed-manager.h
rng-stream.h
rocketfuel-topology-reader.h
rraa-wifi-manager.h
rr-ff-mac-scheduler.h
rtt-estimator.h
rv-battery-model.h
rv-battery-model-helper.h
scheduler.h
send-params.h
seq-ts-header.h
sequence-number.h
service-flow.h
service-flow-manager.h
service-flow-record.h
sgi-hashmap.h
simple-channel.h
simple-device-energy-model.h
simple-net-device.h
simple-ofdm-send-param.h
simple-ofdm-wimax-channel.h
simple-ofdm-wimax-phy.h
simple-ref-count.h
simulation-singleton.h
simulator.h
simulator-impl.h
single-model-spectrum-channel.h
singleton.h
sixlowpan-header.h
sixlowpan-helper.h
sixlowpan-module.h
sixlowpan-net-device.h
snr-tag.h
snr-to-block-error-rate-manager.h
snr-to-block-error-rate-record.h
socket-factory.h
socket.h
spectrum-analyzer.h
spectrum-analyzer-helper.h
spectrum-channel.h
spectrum-converter.h
spectrum-error-model.h
spectrum-helper.h
spectrum-interference.h
spectrum-model-300kHz-300GHz-log.h
spectrum-model.h
spectrum-model-ism2400MHz-res1MHz.h
spectrum-module.h
spectrum-phy.h
spectrum-propagation-loss-model.h
spectrum-signal-parameters.h
spectrum-test.h
spectrum-value.h
sqlite-data-output.h
ssid.h
ss-manager.h
ss-net-device.h
ss-record.h
ss-service-flow-manager.h
stats-module.h
status-code.h
sta-wifi-mac.h
steady-state-random-waypoint-mobility-model.h
string.h
supported-rates.h
synchronizer.h
system-condition.h
system-mutex.h
system-path.h
system-thread.h
system-wall-clock-ms.h
tag-buffer.h
tag.h
tap-bridge.h
tap-bridge-helper.h
tap-bridge-module.h
tap-fd-net-device-helper.h
tap.h
tcp-header.h
tcp-l4-protocol.h
tcp-newreno.h
tcp-reno.h
tcp-rfc793.h
tcp-rx-buffer.h
tcp-socket-base.h
tcp-socket-factory.h
tcp-socket.h
tcp-tahoe.h
tcp-tx-buffer.h
tcp-westwood.h
tdbet-ff-mac-scheduler.h
tdmt-ff-mac-scheduler.h
tdtbfq-ff-mac-scheduler.h
test.h
time-data-calculators.h
timer.h
timer-impl.h
time-series-adaptor.h
topology-reader.h
topology-reader-helper.h
topology-read-module.h
traced-callback.h
traced-value.h
trace-fading-loss-model.h
trace-helper.h
trace-source-accessor.h
trailer.h
tta-ff-mac-scheduler.h
type-id.h
type-name.h
type-traits.h
uan-address.h
uan-channel.h
uan-header-common.h
uan-header-rc.h
uan-helper.h
uan-mac-aloha.h
uan-mac-cw.h
uan-mac.h
uan-mac-rc-gw.h
uan-mac-rc.h
uan-module.h
uan-net-device.h
uan-noise-model-default.h
uan-noise-model.h
uan-phy-dual.h
uan-phy-gen.h
uan-phy.h
uan-prop-model.h
uan-prop-model-ideal.h
uan-prop-model-thorp.h
uan-transducer.h
uan-transducer-hd.h
uan-tx-mode.h
udp-client.h
udp-client-server-helper.h
udp-echo-client.h
udp-echo-helper.h
udp-echo-server.h
udp-header.h
udp-l4-protocol.h
udp-server.h
udp-socket-factory.h
udp-socket.h
udp-trace-client.h
uinteger-16-probe.h
uinteger-32-probe.h
uinteger-8-probe.h
uinteger.h
ul-job.h
ul-mac-messages.h
unix-fd-reader.h
unused.h
v4ping.h
v4ping-helper.h
vector.h
vendor-specific-action.h
virtual-net-device.h
virtual-net-device-module.h
visualizer-module.h
wall-clock-synchronizer.h
watchdog.h
waveform-generator.h
waveform-generator-helper.h
wave-mac-helper.h
wave-mac-low.h
wave-module.h
waypoint.h
waypoint-mobility-model.h
wifi-80211p-helper.h
wifi-channel.h
wifi-helper.h
wifi-information-element.h
wifi-information-element-vector.h
wifi-mac.h
wifi-mac-header.h
wifi-mac-queue.h
wifi-mac-trailer.h
wifi-mode.h
wifi-module.h
wifi-net-device.h
wifi-phy.h
wifi-phy-standard.h
wifi-phy-state-helper.h
wifi-preamble.h
wifi-radio-energy-model.h
wifi-radio-energy-model-helper.h
wifi-remote-station-manager.h
wifi-spectrum-value-helper.h
wifi-tx-vector.h
wimax-channel.h
wimax-connection.h
wimax-helper.h
wimax-mac-header.h
wimax-mac-queue.h
wimax-mac-to-mac-header.h
wimax-module.h
wimax-net-device.h
wimax-phy.h
wimax-tlv.h
yans-error-rate-model.h
yans-wifi-channel.h
yans-wifi-helper.h
yans-wifi-phy.h
"
 

Konstantinos

unread,
Dec 31, 2013, 8:52:36 AM12/31/13
to ns-3-...@googlegroups.com
Hi,

You are reading the tutorial for NS-3.9 and probably you are using a later version of NS-3. 

Please refer to the corresponding tutorial with the NS-3 version you are using.

Tommaso Pecorella

unread,
Dec 31, 2013, 12:06:31 PM12/31/13
to ns-3-...@googlegroups.com
Hi,

back the days (I don't remember when, but it was a lot of releases ago) the modules structure got a huge refactoring. As a matter of fact, 3.9 is pre-refactoring.

Nothing was thrown in the bin, but stuff was moved around to make things more logical.

As an example, in 3.9 you had to include a "code-module.h" and a "simulator-module.h". Illogical, since the simulator *is* a core function. Now they're both in the core module.

Another quite visible feature was the removal of "helpers module". Now the helpers are included into the module they belong to. So the core helpers are in the core module, the wii helpers in the wifi module, and so on.

That's the historical part. About your question, I agree with Kostantinos. Please use the 3.19 tutorial and manual, since it seems you're using 3.19.

Happy New Year,

T.  
Reply all
Reply to author
Forward
0 new messages