I am working with NS-2.31 installed in cygwin.
I want to add some global variables in NS-2 or more specifically in
packet.h/packet.cc files.
I have tried it in packet.h, by simply adding it as we normally do in
C, but it gives errors like

"multiple definition of my_var"
........"first defined here"  etc

here my_var is variable that i declared globally

Is there some different way of doing this, may be i am following wrong way
any help will be appreciated

thanks,
Anuradha Sehgal

Reply via email to