K
K' Dash
Dear Members
I am not getting that how to resolve these errors. please help
[adnan@localhost ns-3.19]$ ./waf --run scratch/test_medeha_adhoc
Waf: Entering directory `/home/adnan/porting/ns-allinone-3.19/ns-3.19/build'
[ 408/1754] install-ns3-header: src/medeha/model/EID_home_server_application.h -> build/ns3/EID_home_server_application.h
[ 821/1754] cxx: scratch/IS-Based.cc -> build/scratch/IS-Based.cc.10.o
[ 826/1754] cxx: scratch/test_medeha_adhoc.cc -> build/scratch/test_medeha_adhoc.cc.5.o
[1433/1754] cxx: src/medeha/model/EID_home_server_application.cc -> build/src/medeha/model/EID_home_server_application.cc.1.o
[1436/1754] cxx: src/medeha/helper/EID_echo_helper.cc -> build/src/medeha/helper/EID_echo_helper.cc.1.o
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:33:2: error: conflicting declaration 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:33:2: error: 'ns3::BufferedFrames' has a previous declaration as 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:36:7: error: redefinition of 'class ns3::Buffer_Class'
class Buffer_Class
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:36:7: error: previous definition of 'class ns3::Buffer_Class'
class Buffer_Class
^
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:33:2: error: conflicting declaration 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:33:2: error: 'ns3::BufferedFrames' has a previous declaration as 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:36:7: error: redefinition of 'class ns3::Buffer_Class'
class Buffer_Class
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:36:7: error: previous definition of 'class ns3::Buffer_Class'
class Buffer_Class
^
Waf: Leaving directory `/home/adnan/porting/ns-allinone-3.19/ns-3.19/build'
Build failed
I am not getting that how to resolve these errors. please help
[adnan@localhost ns-3.19]$ ./waf --run scratch/test_medeha_adhoc
Waf: Entering directory `/home/adnan/porting/ns-allinone-3.19/ns-3.19/build'
[ 408/1754] install-ns3-header: src/medeha/model/EID_home_server_application.h -> build/ns3/EID_home_server_application.h
[ 821/1754] cxx: scratch/IS-Based.cc -> build/scratch/IS-Based.cc.10.o
[ 826/1754] cxx: scratch/test_medeha_adhoc.cc -> build/scratch/test_medeha_adhoc.cc.5.o
[1433/1754] cxx: src/medeha/model/EID_home_server_application.cc -> build/src/medeha/model/EID_home_server_application.cc.1.o
[1436/1754] cxx: src/medeha/helper/EID_echo_helper.cc -> build/src/medeha/helper/EID_echo_helper.cc.1.o
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:33:2: error: conflicting declaration 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:33:2: error: 'ns3::BufferedFrames' has a previous declaration as 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:36:7: error: redefinition of 'class ns3::Buffer_Class'
class Buffer_Class
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/test_medeha_adhoc.cc:21:
../ns3/Buffer_Class.h:36:7: error: previous definition of 'class ns3::Buffer_Class'
class Buffer_Class
^
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:33:2: error: conflicting declaration 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:33:2: error: 'ns3::BufferedFrames' has a previous declaration as 'typedef struct ns3::BufferedFrames ns3::BufferedFrames'
}BufferedFrames;
^
In file included from ./ns3/EID_home_server_application.h:30:0,
from ./ns3/medeha-module.h:20,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:36:7: error: redefinition of 'class ns3::Buffer_Class'
class Buffer_Class
^
In file included from ./ns3/medeha-module.h:10:0,
from ../scratch/IS-Based.cc:27:
../ns3/Buffer_Class.h:36:7: error: previous definition of 'class ns3::Buffer_Class'
class Buffer_Class
^
Waf: Leaving directory `/home/adnan/porting/ns-allinone-3.19/ns-3.19/build'
Build failed