重新编译ns2时遇到以下问题
proxytrace2any.cc: In function `int main(int, char**)':
proxytrace2any.cc:112: error: `IsLittleEndian' undeclared (first use this function)
proxytrace2any.cc:112: error: (Each undeclared identifier is reported only once for each function it appears in.)
proxytrace2any.cc:120: error: `ToOtherEndian' undeclared (first use this function)
make[1]: *** [proxytrace2any.o] Error 1
解决方法:
打开ns-2.29/indep-utils/webtrace-conv/dec/my-endian.h
注释掉#ifndef _ENDIAN_H_ 和 #endif
然后重新编译