hello NS-users:

> I  create another identical SMAC file  in Ns-2.34 but I

> would like it to be renamed as moses and renamed all SMAC files (.cc & .h)
to moses files

> (.cc & .h). Then I clone the code and  I have changed all the words where

> the SMAC word appears by the moses word (C++ classes, packet headers,

> variables, TCL bindings,...). Therefore when I recompile my NS2.34 with
"make" command I'm getting these errors

Mac/moses mac/moses.cc

>mac/moses.cc In member function 'void MOSES::handleRecvTimer()':

>mac/moses.cc:563: error: 'HDR_MOSES' undeclared (first use this function) 

>mac/moses.cc In member function 'int MOSES::checkToSend()':

>mac/moses.cc:603: error: 'HDR_MOSES' undeclared (first use this function)

>mac/moses.cc :563: error: (Each undeclared identifier is reported only once
for each function it appears)

>mac/moses.cc In member function 'void MOSES::handleRecvTimer()':

>mac/moses.cc:563: error: 'HDR_MOSES' undeclared (first use this function

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

>mac/moses.cc: In member function 'void MOSES::sentDATA(Packet*)':

>mac/moses.cc:563: error: 'HDR_MOSES' undeclared (first use this function)

>make: ***[mac/moses.o]Error 1

 

 

 

 

 

 

 

 

 

These functions are the same that SMAC functions but this functions
are of my component.
 
Therefore I want to know if I'm missing any other files that need to be
edited
 
Help me, thank you very much.
 

 

 

 

 

 

Reply via email to