[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Re: gcc



 Hello:
 
 Firstly, thanks for your help. I haven't found any gcc-2.8.1 packet with STL,
 so I downloaded the newest gcc - 2.95.1, which version supports STL
 
 I try to use gcc-2.95.1 to compile the rtProtoLS and get the following error
 messages.
 ***********************************************************************************
            ......
 c++ -c -DNSLS -I. -I/work/software/ns-allinone-2.1b5/ns-2.1b5 -I/work/software/ns-allinone-2.1b5/tcl8.0.4/generic -I/work/software/ns-allinone-2.1b5/otcl-1.0a4 -I/work/software/ns-allinone-2.1b5/tclcl-1.0b8 -I. -I../tclcl-1.0b8 -I../otcl-1.0a4 -I../tkbox/include -I../tclbox/include
 -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -fsigned-char -fno-inline -DUSE_SHM -DHAVE_LIBTCLDBG -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_LIBTCLDBG=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  \
         -o rtProtoLS.o rtProtoLS.cc
 In file included from rtProtoLS.h:12,
                  from rtProtoLS.cc:6:
 ls.h: In method `typename LsMap<Key,T>::iterator LsMap<Key,T>::insert(const Key &, const T &)':
 ls.h:141: parse error before `('
 ls.h: In method `struct _Rb_tree_iterator<pair<const int,LsEqualPaths>,pair<const int,LsEqualPaths> &,pair<const int,LsEqualPaths> *> LsMap<int,LsEqualPaths>::insert(const ls_node_id_t &, const LsEqualPaths &)':
 ls.h:375:   instantiated from here
 ls.h:142: `v' undeclared (first use this function)
 ls.h:142: (Each undeclared identifier is reported only once
 ls.h:142: for each function it appears in.)
 make[1]: *** [rtProtoLS.o] Error 1
 make[1]: Leaving directory `/work/software/ns-allinone-2.1b5/ns-2.1b5/rtProtoLS_b5'
 make: *** [all] Error 2      
 **********************************************************************************
 I don't know whether it is a bugger of your model or a bugger of gcc. So, would
 you give me some help?
 
 Thank you again
 
 Yan Qiang