landrew126 schrieb: > Hi,everybody I think I must send this letter again,for I didn't post the > errormessage to you. The following is the error message I got when > complingns-2.29: > g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR-DNDEBUG > -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H-DHAVE_LIBOTCL1_11 > -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H-DHAVE_LIBTCL8_4 -DHAVE_TCL_H > -DHAVE_CONFIG_H -DNS_DIFFUSION-DSMAC_NO_SYNC -DCPP_NAMESPACE=std > -DUSE_SINGLE_ADDRESS_SPACE -Drng_test-I. > -I/home/landrew/WsnSimulator/ns-allinone-2.29/tclcl-1.17-I/home/landrew/WsnSimulator/ns-allinone-2.29/otcl-1.11-I/home/landrew/WsnSimulator/ns-allinone-2.29/include-I/home/landrew/WsnSimulator/ns-allinone-2.29/include-I/usr/include/pcap > -I./tcp -I./sctp -I./common -I./link -I./queue-I./adc -I./apps -I./mac > -I./mobile -I./trace -I./routing -I./tools-I./classifier -I./mcast > -I./diffusion3/lib/main -I./diffusion3/lib-I./diffusion3/lib/nr > -I./diffusion3/ns -I./diffusion3/filter_core-I./asim/ -I./qs -I./diffserv > -I./satellite -I./wpan -o dsr/dsragent.odsr/dsragent.ccdsr/dsragent.cc: In > member function ‘voidDSRAgent::handleFlowForwarding(SRPacket&, > int)’:dsr/dsragent.cc:828: error: ‘XmitFlowFailureCallback’ was not > declaredin this scopedsr/dsragent.cc: In member function > ‘voidDSRAgent::sendOutPacketWithRoute(SRPacket&, bool, > Time)’:dsr/dsragent.cc:1385: error: ‘XmitFailureCallback’ was not declared > inthis scopedsr/dsragent.cc:1386: error: ‘XmitFlowFailureCallback’ was not > declaredin this scopedsr/dsragent.cc:1403: error: ‘XmitFailureCallback’ was > not declared inthis scopemake: *** [dsr/dsragent.o] Error 1 >
This is a problem with the latest gcc version. To fix it, you can modify the files by moving the Xmit*Callback functions to the beginning of the file. Otherwise you could get updated versions of the files from the CVS - I already fixed this 3 weeks ago. You can also downgrade your gcc to a 3.3 version. Daniel.