[Ns-developers] Solving the error of RECV and SEND of NS-2.32
Joao Borges
joaoborges at great.ufc.br
Thu Dec 6 14:37:34 PST 2007
Hello all,
I've noted an error when trying to compile a code for the NS-2.32, the
error was the same as this in another mail:
http://mailman.isi.edu/pipermail/ns-users/2006-July/056603.html
The error is occurring because the file mac/wireless-phy.h create an
enum type with the names RECV and SEND:
enum ChannelStatus { SLEEP, IDLE, RECV, SEND };
and the file trace/cmu-trace.h defines the two constants with the same
RECV and SEND names:
#define RECV 'r'
#define SEND 's'
So to solve this error these two names (RECV and SEND) in one of this
files must be changed to another names.
My question is what file is the best choice to change, what file
changed will not cause minor problems to change another pieces of
code, causing a chain reaction.
For now, I changed the mac/wireless-phy.h and mac/wireless-phy.cc that
uses this enum types, is that the right choice?
Thank you all.
--
Joao Borges
(84) 8833-7275
(85) 8736-8356
joaoborges at great.ufc.br
joaoborges at mossol.com
joaoborges6 at gmail.com
great.ufc.br/~joaoborges
GNU/Linux #361785
More information about the Ns-developers
mailing list