Quote:
Originally Posted by knudfl
http://www.linuxquestions.org/questi...ibrary-690046/
Please see post # 2.
I guess, you can build edited c++ files with the same Makefile.
The way to find all locale "files.h" is in the Makefile
( ns-allinone-2.33/ns-2.33/Makefile ) like this, from line 64
So not using the Makefile > no finding the includes.
....
|
I checked the Makefile and the contents are there. I used the static path for testing whether the given code is working or not. I got the following errors.
Do we need to modify the already existing header files?
[root@localhost dsdv]# gcc dsdv.cc
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h: In static member function ‘static int TclObjectHelper<T>::dispatch_(void*, Tcl_Interp*, int, char**)’:
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:50: error: expected unqualified-id before ‘=’ token
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:50: error: abstract declarator ‘Tcl&’ used as declaration
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:51: error: expected primary-expression before ‘*’ token
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:51: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:56: error: expected primary-expression before ‘.’ token
/usr/src/ns-allinone-2.33/ns-2.33/link/delay.h: At global scope:
/usr/src/ns-allinone-2.33/ns-2.33/link/delay.h:70: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/nam-1.13/trace.h:103: error: declaration does not declare anything
/usr/src/ns-allinone-2.33/nam-1.13/trace.h:110: error: expected unqualified-id before ‘[’ token
/usr/src/ns-allinone-2.33/nam-1.13/trace.h:124: error: declaration does not declare anything
/usr/src/ns-allinone-2.33/nam-1.13/trace.h:154: error: declaration does not declare anything
/usr/src/ns-allinone-2.33/ns-2.33/routing/route.h: In member function ‘virtual int RouteLogicAlgo::lookup_flat(char*, char*, int&)’:
/usr/src/ns-allinone-2.33/ns-2.33/routing/route.h:131: error: expected unqualified-id before ‘=’ token
/usr/src/ns-allinone-2.33/ns-2.33/routing/route.h:131: error: abstract declarator ‘Tcl&’ used as declaration
/usr/src/ns-allinone-2.33/ns-2.33/routing/route.h:132: error: expected primary-expression before ‘.’ token
/usr/src/ns-allinone-2.33/ns-2.33/routing/route.h:133: error: expected primary-expression before ‘.’ token
/usr/src/ns-allinone-2.33/ns-2.33/routing/rtmodule.h: At global scope:
/usr/src/ns-allinone-2.33/ns-2.33/routing/rtmodule.h:95: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/routing/rtmodule.h:95: error: invalid member function declaration
/usr/src/ns-allinone-2.33/ns-2.33/routing/rtmodule.h:147: error: ISO C++ forbids declaration of ‘HierClassifier’ with no type
/usr/src/ns-allinone-2.33/ns-2.33/routing/rtmodule.h:147: error: expected ‘;’ before ‘*’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/parentnode.h:78: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:108: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:108: error: invalid member function declaration
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:154: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:215: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:215: error: invalid member function declaration
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:216: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/node.h:216: error: invalid member function declaration
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:122: error: expected unqualified-id before ‘void’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:122: error: expected `)' before ‘void’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:122: error: abstract declarator ‘Node*’ used as declaration
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:122: error: expected ‘;’ before ‘void’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:123: error: expected `;' before ‘virtual’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:123: error: expected unqualified-id before ‘void’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:123: error: expected `)' before ‘void’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:123: error: abstract declarator ‘Channel*’ used as declaration
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:123: error: expected ‘;’ before ‘void’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:125: error: expected `;' before ‘virtual’
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h: In member function ‘virtual void Phy::setnode(Node*)’:
/usr/src/ns-allinone-2.33/ns-2.33/mac/phy.h:121: error: expected primary-expression before ‘;’ token
dsdv.h: At global scope:
dsdv.h:120: error: expected unqualified-id before ‘int’
dsdv.h:120: error: expected `)' before ‘int’
dsdv.h:120: error: abstract declarator ‘Packet*’ used as declaration
dsdv.h:120: error: expected ‘;’ before ‘int’
dsdv.h:122: error: expected unqualified-id before ‘char’
dsdv.h:122: error: expected `)' before ‘char’
dsdv.h:157: error: expected unqualified-id before ‘;’ token
dsdv.h:157: error: abstract declarator ‘char*’ used as declaration
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:54: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:54: error: invalid member function declaration
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:60: error: expected unqualified-id before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static void Random::seed(int)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:57: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static int Random::seed_heuristically()’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:58: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:58: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::uniform()’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:61: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::uniform(double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:62: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::uniform(double, double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:63: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::exponential()’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:64: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static int Random::integer(int)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:65: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::exponential(double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:66: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random:
areto(double, double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:67: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random:
aretoII(double, double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:68: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::normal(double, double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:69: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h: In static member function ‘static double Random::lognormal(double, double)’:
/usr/src/ns-allinone-2.33/ns-2.33/tools/random.h:70: error: expected primary-expression before ‘)’ token
/usr/src/ns-allinone-2.33/ns-2.33/trace/cmu-trace.h: At global scope:
/usr/src/ns-allinone-2.33/ns-2.33/trace/cmu-trace.h:116: error: ‘BaseTrace’ has not been declared
/usr/src/ns-allinone-2.33/ns-2.33/trace/cmu-trace.h:118: error: ‘BaseTrace’ has not been declared
/usr/src/ns-allinone-2.33/ns-2.33/common/mobilenode.h:153: error: expected unqualified-id before ‘;’ token
/usr/src/ns-allinone-2.33/ns-2.33/common/mobilenode.h:153: error: abstract declarator ‘MobileNode*’ used as declaration
/usr/src/ns-allinone-2.33/ns-2.33/common/mobilenode.h: In constructor ‘PositionHandler::PositionHandler(MobileNode*)’:
/usr/src/ns-allinone-2.33/ns-2.33/common/mobilenode.h:150: error: anachronistic old-style base class initializer
/usr/src/ns-allinone-2.33/ns-2.33/common/mobilenode.h:150: error: no matching function for call to ‘Handler::Handler(MobileNode*&)’
/usr/src/ns-allinone-2.33/ns-2.33/common/scheduler.h:75: note: candidates are: Handler::Handler()
/usr/src/ns-allinone-2.33/ns-2.33/common/scheduler.h:75: note: Handler::Handler(const Handler&)
dsdv.cc: At global scope:
dsdv.cc:91: error: expected unqualified-id before ‘(’ token
dsdv.cc: In member function ‘void DSDV_Agent:
utput_rte(const char*, rtable_ent*, DSDV_Agent*)’:
dsdv.cc:138: error: expected unqualified-id before ‘(’ token
dsdv.cc: In constructor ‘DSDV_Agent:
SDV_Agent()’:
dsdv.cc:1113: error: expected primary-expression before ‘=’ token
dsdv.cc: In member function ‘void DSDV_Agent::startUp()’:
dsdv.cc:1124: error: expected primary-expression before ‘=’ token