whats your distribution? if your distribution is debian-based linux try ./install script. regards
Breno Caetano da Silva Bacharel em Ciências da Computação - UFPI Mestrando em Engenharia Elétrica Escola de Engenharia de São Carlos - EESC Universidade de São Paulo Email: [EMAIL PROTECTED] [EMAIL PROTECTED] Fone: (+5516) 81449079 (+5516) 33738149 ----- Mensagem original ---- De: eng Rony <[EMAIL PROTECTED]> Para: Daniel Rosenthal <[EMAIL PROTECTED]>; ns-users@ISI.EDU Enviadas: Terça-feira, 26 de Agosto de 2008 14:07:30 Assunto: Re: [ns] problem concerning cxx Eng Rony i apply ur suggest, and the following appears, what can i do [EMAIL PROTECTED]:~$ cd ns-allinone-2.33 [EMAIL PROTECTED]:~/ns-allinone-2.33$ cd ns-2.33 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ ./configure && make No .configure file found in current directory Continuing with default options... checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that g++ can handle -O2... no checking if C++ libraries work without any namespace... no checking if C++ libraries work with namespace std... yes checking if STL works without any namespace... no checking if STL works with namespace std... yes checking should use STL... yes checking for tcl.h... -I../include checking for libtcl8.4... -L../lib -ltcl8.4 checking for init.tcl... ../lib/tcl8.4 checking for tclsh8.4.18... no checking for tclsh8.4... ../bin/tclsh8.4 checking for tk.h... -I../include checking for libtk8.4... -L../lib -ltk8.4 checking for tk.tcl... ../lib/tk8.4 checking for otcl.h... -I../otcl checking for libotcl1.13... -L../otcl -lotcl checking for tclcl.h... -I../tclcl-1.19 checking for libtclcl... -L../tclcl-1.19 -ltclcl checking for tcl2c++... ../tclcl-1.19 checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... yes checking for XShmAttach in -lXext... yes checking for libtcldbg... no checking dmalloc... not requested with --with-dmalloc checking for perl... /usr/bin checking for ANSI C header files... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fenv.h usability... yes checking fenv.h presence... yes checking for fenv.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking for main in -lm... yes checking for bcopy... yes checking for bzero... yes checking for fesetprecision... no checking for feenableexcept... yes checking for getrusage... yes checking for sbrk... yes checking for snprintf... yes checking return type of random... long checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_char... yes checking for u_int... yes checking for strtoq... yes checking for strtoll... yes checking for long... yes checking size of long... 4 checking for __int64_t... no checking for long long... yes checking for int64_t... yes checking which kind of 64-bit int to use... int64_t checking system version (for dynamic loading)... Linux-2.6.22-14-generic checking for dlopen in -ldl... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ns library name... libns.so checking for struct ether_header... found checking for struct ether_addr... found checking for addr2ascii... no checking for Linux compliant tcphdr... found checking for BSD compliant tcphdr... not found checking for socklen_t... yes checking for main in -lpcap... yes checking to make nse... yes Explicitly disabling static compilation checking for dlopen in -ldl... (cached) yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating tcl/lib/ns-autoconf.tcl config.status: creating indep-utils/webtrace-conv/ucb/Makefile config.status: creating indep-utils/webtrace-conv/dec/Makefile config.status: creating indep-utils/webtrace-conv/nlanr/Makefile config.status: creating indep-utils/webtrace-conv/epa/Makefile config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile config.status: creating autoconf.h config.status: autoconf.h is unchanged g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -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. -I/home/rania/ns-allinone-2.33/tclcl-1.19 -I/home/rania/ns-allinone-2.33/otcl -I/home/rania/ns-allinone-2.33/include -I/home/rania/ns-allinone-2.33/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 common/packet.o common/packet.cc common/packet.cc:44: error: conflicting declaration ‘char** p_info::name_’ common/packet.h:277: error: ‘p_info::name_’ has a previous declaration as ‘char* p_info::name_ [59]’ common/packet.cc:44: error: declaration of ‘char* p_info::name_ [59]’ outside of class is not definition common/packet.cc:45: error: ‘unsigned int p_info::nPkt_’ is not a static member of ‘class p_info’ common/packet.cc:46: error: expected constructor, destructor, or type conversion before ‘*’ token common/packet.cc:48: error: no ‘int p_info::addPacket(char*)’ member function declared in class ‘p_info’ common/packet.cc: In member function ‘int p_info::addPacket(char*)’: common/packet.cc:50: error: ‘nPkt_’ was not declared in this scope common/packet.cc:51: error: ‘initName’ was not declared in this scope common/packet.cc:53: error: ‘nPkt_’ was not declared in this scope common/packet.cc:55: error: ‘initName’ was not declared in this scope make: *** [common/packet.o] Error 1 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ --- On Tue, 8/26/08, Daniel Rosenthal <[EMAIL PROTECTED]> wrote: From: Daniel Rosenthal <[EMAIL PROTECTED]> Subject: Re: [ns] problem concerning cxx To: [EMAIL PROTECTED] Date: Tuesday, August 26, 2008, 2:56 PM Hi! I hope this will help you: [EMAIL PROTECTED]:~/ns-allinone-2.33$ cd ns-2.33 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ ./configure && make Daniel Am Dienstag 26 August 2008 13:37:04 schrieb eng Rony: > hello everybody > I have a problem concerning cxx > when i type make. the following is my code: > > [EMAIL PROTECTED]:~$ cd ns-allinone-2.33 > > > [EMAIL PROTECTED]:~/ns-allinone-2.33$ cd ns-2.33 > > [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make > > make: CXX@: Command not found > > make: *** [common/packet.o] Error 127 > > [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ > > plz. i want your helps > > Eng Rony Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses