nanosim- health-care.cc issue

46 views
Skip to first unread message

Farhana Javed

unread,
Jul 20, 2018, 6:01:40 AM7/20/18
to ns-3-users
Hello,

I am stuck on this issue since I have added nanosim in ns3.

When I run health-care the following error appears:

[ 580/1289] cxx: scratch/health-care.cc -> build/scratch/health-care.cc.1.o
../scratch/health-care.cc:34:33: fatal error: ns3/nano-mac-entity.h: No such file or directory
compilation terminated.

Build failed
 -> task failed (exit status 1): 
{task 150232844: cxx health-care.cc -> health-care.cc.1.o}
['/usr/lib/ccache/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-Ibuild', '-I.', '-I.', '-I/home/shumaila/Downloads/ns-allinone-3.13', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_IF_TUN_H=1', '-DPYTHONDIR="/usr/local/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/site-packages"', '../scratch/health-care.cc', '-c', '-o', 'scratch/health-care.cc.1.o'

Even, when I compile a simple first.cc it's giving me the aforementioned error. Its like it's not even compiling anything else. 

Can please anyone help me?

Thanks! 

nasrin

unread,
Jul 24, 2018, 2:30:21 AM7/24/18
to ns-3-users
hello
first of all you should make sure that you have added the nanosim module to ns3 successfully . because healthcare.cc heve some problems with new versions of ns3 that should get fixed . otherwise you can use older versions like ns3.19
next you should know when you have a file in a scratch folder that it contains some errors, you cant compile anything else in there ! you shoud fix or remove that containing error file .
and finally , probably that erreor is caused because of wscript file of nanosim moudule. check the wscript file , all .h and .cc files in nanosim module, should be defined there and it seems the nano-mac-entity.h is not defined .
good luck
Reply all
Reply to author
Forward
0 new messages