How to fix this error while trying to build a ns3 simulation?

1.7k Views Asked by At

I have a simulation called adhoc-simulation.cc in a folder called scratch so it should be running fine, however when I build it using this command sudo ./waf --run adhoc-simulation in the ns-3.33 folder I get this error:

FileNotFoundError: [Errno 2] No such file or directory: '/home/*/ns-3-allinone/ns-3.33/build/ns3/yans-wifi-helper.h'
1

There are 1 best solutions below

0
Nithesh B On

I got the same error using latest version of ns3,I used ./ns3 run filename command,it worked for me.