Menu

#57 "make" causes errors

open
nobody
ns-2 (62)
5
2014-03-01
2010-07-13
Anonymous
No

Hi,

I installed the ns-2 simulator and used it for some examples.. Now I installed the TENS-Package and run "make depend" which caused an error. After using the solution of the "make depend"-Problem, tried to run "make" which causes the following error:

"
common/packet.cc: At global scope:
common/packet.cc:44: error: conflicting declaration ‘char** p_info::name_’
common/packet.h:273: error: ‘p_info::name_’ has a previous declaration as ‘char* p_info::name_ [59]’
common/packet.cc:44: error: declaration of ‘char* p_info::name_ [59]’ outside of class is not definition
common/packet.cc:45: error: ‘unsigned int p_info::nPkt_’ is not a static member of ‘class p_info’
common/packet.cc:46: error: expected constructor, destructor, or type conversion before ‘*’ token
common/packet.cc:48: error: no ‘int p_info::addPacket(char*)’ member function declared in class ‘p_info’
common/packet.cc: In member function ‘virtual void CommonHeaderClass::export_offsets()’:
common/packet.cc:131: error: cast from ‘packet_t*’ to ‘int’ loses precision
common/packet.cc:132: error: cast from ‘int*’ to ‘int’ loses precision
common/packet.cc:133: error: cast from ‘int*’ to ‘int’ loses precision
common/packet.cc:134: error: cast from ‘int*’ to ‘int’ loses precision
make: *** [common/packet.o] Error 1
"

Did not find any solution for this Problem, please help me!

Discussion

  • Nobody/Anonymous

    lMzR5D I really like and appreciate your post.Thanks Again.

     
  • Nobody/Anonymous

    Very informative article. Will read on...

     
  • Nobody/Anonymous

    how you sort out the above mentioned problem!!!!!!!!!!!!!!!

     

Log in to post a comment.