error

25 views
Skip to first unread message

Said Ouhmi

unread,
Jan 24, 2022, 3:40:38 AM1/24/22
to ns-3-users
hello 
please i have this error :
../scratch/leach-helper.h:5:10: fatal error: ns3/leach.h: Aucun fichier ou dossier de ce type
    5 | #include "ns3/leach.h"
      |          ^~~~~~~~~~~~~
compilation terminated.

../scratch/backup.cc: In function ‘int runDirectSimulation(const sensor*)’:
../scratch/backup.cc:534:13: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
  534 |             else
      |             ^~~~
../scratch/backup.cc:536:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  536 |                 network_DIRECT[i].bCurrent -= power_consumption;
      |                 ^~~~~~~~~~~~~~
../scratch/backup.cc: In function ‘int runDirectSimulationNPP(const sensor*)’:
../scratch/backup.cc:641:13: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
  641 |             else
      |             ^~~~
../scratch/backup.cc:643:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  643 |                 network_DIRECT_NPP[i].bCurrent -= power_consumption;
      |                 ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Waf: Leaving directory `/home/said/Bureau/leach_ns3-master/ns-3.27/build'
Build failed
 -> task in 'leach-helper' failed (exit status 1):
        {task 140384977774224: cxx leach-helper.cc -> leach-helper.cc.5.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-pthread', '-I.', '-I..', '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_LIBXML2=1', '../scratch/leach-helper.cc', '-c', '-o', '/home/said/Bureau/leach_ns3-master/ns-3.27/build/scratch/leach-helper.cc.5.o']

Soulimane Mammar

unread,
Jan 24, 2022, 6:36:36 AM1/24/22
to ns-3-users
Hi,
You have to be more explicit. What are you trying to do?

Reply all
Reply to author
Forward
0 new messages