[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Problems compiling ping.cc
try those in tcl/greis?
On Tue, 9 May 2000, Abel Mayal wrote:
> Date: Tue, 9 May 2000 11:44:48 +0100
> From: Abel Mayal <[email protected]>
> To: ns-users <[email protected]>
> Subject: [ns] Problems compiling ping.cc
>
> Hello everyone!
> I'm just trying to do the example of the ping agent in the Marc Greis Tutorial. I have copied the ping.cc and ping.h files from the web page . I have also modified the Makefile, packet.h, ns-defaults.tcl and ns-packet.tcl. When I run "make depend" everything is OK, but when I run "make" it comes up this error:
> ########
> >make depend
> c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOQ=1 -I. -I/usr/X11R6/include -I../tclcl-1.0b8 -I../otcl-1.0a4 -I../tkbox/include -I../tclbox/include -o ping.o ping.cc
> ping.cc: In method `void PingAgent::recv(class Packet *, class Handler * = 0)':
> ping.cc:93: request for member `addr_' in `hdrip->hdr_ip::src_', which is of non-aggregate type `int'
> *** Error code 1
>
> Stop.
> #########
>
> Can anyone told me how can I fix this, please?
>
> Thanks a lot... Abel
>
>
> --------------------------------------------------------------------------------
> WW
> /__\
> | oo | _WWWWW_
> (|_()_|) / o o \
> \__/ (| __O__ |)
> /|\/|\ \ \___/ /
> |||||||| /-------\
> |||||||| |=========|
> |||||||| |=========|
> Life is too short: CARPE DIEM
>
> J Abel Mayal de la Torre
>
> / BT Advanced Communications Technology Centre
> B29 BT Adastral Park
> Martlesham Heath
> Ipswich
> Suffolk IP5 3RE
>
> ( 01473 647615
>
> * [email protected]
>
> --------------------------------------------------------------------------------
>
>