- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- help in marc gregis tutorial
Hey guys,
When i try and implement the ping protocol ( compile the ping.cc file)
in the marc gregis tutotial. I get this error.
In file included from object.h:40,
from connector.h:40,
from agent.h:40,
from ping.h:12,
from ping.cc:9:
scheduler.h:40:20: error: config.h: No such file or directory
In file included from agent.h:41,
from ping.h:12,
from ping.cc:9:
packet.h:46:26: error: lib/bsd- list.h: No such file or directory
In file included from packet.h:47,
from agent.h:41,
from ping.h:12,
from ping.cc:9:
packet-stamp.h:20:21: error: antenna.h : No such file or directory
In file included from ping.h:12,
from ping.cc:9:
agent.h:44:17: error: app.h: No such file or directory
In file included from ping.cc:9:
ping.h:13:19: error: tclcl.h : No such file or directory
ping.h:15:21: error: address.h: No such file or directory
scheduler.h:79: error: expected class-name before ‘{‘ token
object.h:46: error: expected class-name before ‘,’ token
object.h :60: error: ‘TclObject’ has not been declared
packet-stamp.h:38: error: ‘Antenna’ has not been declared
packet-stamp.h:45: error: ISO C++ forbids declaration of ‘Antenna’
with no type
packet-stamp.h:45: error: ‘Antenna’ declared as an ‘inline’ field
packet-stamp.h:45: error: expected ‘;’ before ‘*’ token
packet-stamp.h:46: error: expected `;’ before ‘inline’
packet-stamp.h:59: error: ISO C++ forbids declaration of ‘Antenna’
with no type
packet-stamp.h :59: error: expected ‘;’ before ‘*’ token
packet-stamp.h: In constructor ‘PacketStamp::PacketStamp()’:
packet-stamp.h:25: error: class ‘PacketStamp’ does not have any field
named ‘ant’
packet-stamp.h: In member function ‘void PacketStamp::init(const
PacketStamp*)’:
packet-stamp.h:28: error: ‘Antenna’ was not declared in this scope
packet-stamp.h:28: error: ‘ant’ was not declared in this scope
packet-stamp.h:29: error: ‘const class PacketStamp’ has no member
named ‘ant’
packet-stamp.h:30: error: ‘const class PacketStamp’ has no member
named ‘ant’
packet-stamp.h: In member function ‘void
PacketStamp::stamp(MobileNode*, int*, double, double)’:
packet-stamp.h:39: error: ‘ant’ was not declared in this scope
ns-process.h: At global scope:
ns-process.h:115: error: expected class-name before ‘{‘ token
packet.h:405: error: ‘u_int8_t’ does not name a type
packet.h: In member function ‘unsigned char* Packet::access(int)
const’:
packet.h:365: error: ‘abort’ was not declared in this scope
packet.h: At global scope:
packet.h:463: error: ‘nsaddr_t’ does not name a type
packet.h:464: error: ‘nsaddr_t’ does not name a type
packet.h:466: error: ‘nsaddr_t’ does not name a type
packet.h:508: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no
type
packet.h:508: error: ‘nsaddr_t’ declared as an ‘inline’ field
packet.h:508: error: expected ‘;’ before ‘&’ token
packet.h:509: error: expected `;’ before ‘inline’
packet.h:516: error: expected class-name before ‘{‘ token
packet.h:528: error: ISO C++ forbids declaration of ‘TclObject’ with
no type
packet.h:528: error: expected ‘;’ before ‘*’ token
packet.h: In static member function ‘static Packet* Packet::alloc()’:
packet.h:541: error: ‘FALSE’ was not declared in this scope
packet.h:550: error: ‘abort’ was not declared in this scope
packet.h:553: error: ‘struct hdr_cmn’ has no member named ‘next_hop_’
packet.h:554: error: ‘struct hdr_cmn’ has no member named ‘last_hop_’
packet.h:555: error: ‘TRUE’ was not declared in this scope
packet.h: In member function ‘void Packet::allocdata(int)’:
packet.h:573: error: ‘abort’ was not declared in this scope
packet.h: In static member function ‘static void
Packet::free(Packet*)’:
packet.h:603: error: ‘FALSE’ was not declared in this scope
packet.h: In static member function ‘static void
Packet::dump_header(Packet*, int, int)’:
packet.h:628: error: ‘stderr’ was not declared in this scope
packet.h:628: error: ‘fprintf’ was not declared in this scope
agent.h: At global scope:
agent.h:65: error: ISO C++ forbids declaration of ‘TracedVar’ with no
type
agent.h:65: error: expected ‘;’ before ‘*’ token
agent.h:86: error: ‘nsaddr_t’ has not been declared
agent.h:88: error: ‘ns_addr_t’ has not been declared
agent.h:88: error: ‘virtual void Agent::sendto(int, AppData*, const
char*, int)’ cannot be overloaded
agent.h :86: error: with ‘virtual void Agent::sendto(int, AppData*,
const char*, int)’
agent.h:92: error: ‘nsaddr_t’ has not been declared
agent.h:93: error: ‘ns_addr_t’ has not been declared
agent.h:93: error: ‘virtual void Agent::sendto(int, const char*, int)’
cannot be overloaded
agent.h:92: error: with ‘virtual void Agent::sendto(int, const char*,
int)’
agent.h:94: error: ‘nsaddr_t’ has not been declared
agent.h:99: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no
type
agent.h :99: error: ‘nsaddr_t’ declared as an ‘inline’ field
agent.h:99: error: expected ‘;’ before ‘&’ token
agent.h:100: error: expected `;’ before ‘inline’
agent.h:100: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no
type
agent.h:100: error: ‘nsaddr_t’ declared as an ‘inline’ field
agent.h:100: error: expected ‘;’ before ‘&’ token
agent.h:101: error: expected `;’ before ‘inline’
agent.h:101: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no
type
agent.h:101: error: ‘nsaddr_t’ declared as an ‘inline’ field
agent.h:101: error: expected ‘;’ before ‘&’ token
agent.h:102: error: expected `;’ before ‘inline’
agent.h:102: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no
type
agent.h:102: error: ‘nsaddr_t’ declared as an ‘inline’ field
agent.h:102: error: expected ‘;’ before ‘&’ token
agent.h:103: error: expected `;’ before ‘void’
agent.h:109: error: ‘TclObject’ has not been declared
agent.h:117: error: ‘ns_addr_t’ does not name a type
agent.h:118: error: ‘ns_addr_t’ does not name a type
agent.h:133: error: ‘Tcl_Channel’ does not name a type
agent.h:139: error: ‘TracedVar’ has not been declared
agent.h:143: error: expected ‘;’ before ‘(‘ token
agent.h:144: error: ‘TracedVar’ has not been declared
agent.h:152: error: ‘TracedVar’ has not been declared
ip.h:58: error: ‘ns_addr_t’ does not name a type
ip.h:59: error: ‘ns_addr_t’ does not name a type
ip.h:77: error: ISO C++ forbids declaration of ‘ns_addr_t’ with no
type
ip.h:77: error: expected ‘;’ before ‘&’ token
ip.h:78: error: expected `;’ before ‘nsaddr_t’
ip.h:78: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no type
ip.h:78: error: expected ‘;’ before ‘&’ token
ip.h:79: error: expected `;’ before ‘int32_t’
ip.h:79: error: ISO C++ forbids declaration of ‘int32_t’ with no type
ip.h:79: error: expected ‘;’ before ‘&’ token
ip.h:81: error: expected `;’ before ‘ns_addr_t’
ip.h:81: error: ISO C++ forbids declaration of ‘ns_addr_t’ with no
type
ip.h:81: error: expected ‘;’ before ‘&’ token
ip.h:82: error: expected `;’ before ‘nsaddr_t’
ip.h:82: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no type
ip.h:82: error: expected ‘;’ before ‘&’ token
ip.h:83: error: expected `;’ before ‘int32_t’
ip.h:83: error: ISO C++ forbids declaration of ‘int32_t’ with no type
ip.h:83: error: expected ‘;’ before ‘&’ token
ip.h:84: error: expected `;’ before ‘int’
ping.cc:19: error: expected class-name before ‘{‘ token
ping.cc:22: error: ISO C++ forbids declaration of ‘TclObject’ with no
type
ping.cc:22: error: expected ‘;’ before ‘*’ token
ping.cc:25: error: expected `;’ before ‘}’ token
ping.cc: In constructor ‘PingClass::PingClass()’:
ping.cc:21: error: class ‘PingClass’ does not have any field named
‘TclClass’
ping.cc: In constructor ‘PingAgent::PingAgent()’:
ping.cc:30: error: ‘bind’ was not declared in this scope
ping.cc: In member function ‘virtual int PingAgent::command(int, const
char* const*)’:
ping.cc:52: error: ‘TCL_OK’ was not declared in this scope
ping.cc: In member function ‘virtual void PingAgent::recv(Packet*,
Handler*)’:
ping.cc:64: error: ‘off_ip_’ was not declared in this scope
ping.cc:92: error: ‘name’ was not declared in this scope
ping.cc:93: error: ‘struct hdr_ip’ has no member named ‘src_’
ping.cc:93: error: ‘Address’ has not been declared
ping.cc:94: error: ‘sprintf’ was not declared in this scope
ping.cc:95: error: ‘Tcl’ was not declared in this scope
ping.cc:95: error: ‘tcl’ was not declared in this scope
ping.cc:95: error: ‘Tcl’ is not a class or namespace
Help please …
thanks
Sid
You must be logged in to reply to this topic.