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

[ns] about the 802.11 pcf implementation on ns2.1b8a



i just installed ns2.1b8a on redhat 6.2, the install process is ok, but the validate process has several error.
i want to do pcf of 802.11 simulation. so i download pcf implementation from http://www.sm.luth.se/~dugdale/index/software.shtml.
first i copy all *.cc, *.h included in that package in ~ns/., and run make.
but it displayed:
ot@xhjin ns-2.1b8a]# make
c++ -c -O2 -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  -DNDEBUG -DHAVE_STL -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/work/2.1b8/ns-allinone-2.1b8a/tclcl-1.0b11 -I/work/2.1b8/ns-allinone-2.1b8a/otcl-1.0a7 -I/work/2.1b8/ns-allinone-2.1b8a/include -I/work/2.1b8/ns-allinone-2.1b8a/include -o ll.o ll.cc
In file included from ll.cc:69:
mac.h:214: stray '\' in program
make: *** [ll.o] Error 1

then i delete the "\" symbol in mac.h, run make again, it displays:
In file included from mac-802_11.cc:77:
mac-802_11.h:267: parse error before `->'
mac-802_11.h:267: stray '\' in program
mac-802_11.h:268: stray '\' in program
mac-802_11.h:269: stray '\' in program
mac-802_11.h:273: stray '\' in program
mac-802_11.h:274: stray '\' in program
mac-802_11.h:278: stray '\' in program
mac-802_11.h:279: stray '\' in program
mac-802_11.h:283: stray '\' in program
mac-802_11.h:284: stray '\' in program
mac-802_11.h:314: stray '\' in program
mac-802_11.h:314: stray '\' in program
mac-802_11.h:317: stray '\' in program
mac-802_11.h:320: stray '\' in program
mac-802_11.h:347: parse error before `}'
mac-802_11.h:454: parse error before `*'
mac-802_11.h:588: syntax error before `*'
mac-802_11.h: In method `int Mac802_11::initialized()':
mac-802_11.h:534: `phymib_' undeclared (first use this function)
mac-802_11.h:534: (Each undeclared identifier is reported only on

i think the error should not be introduced by "\", because the original mac-802_11.h has the same part .
but why there is so difference.
thank u

Best Regard

JIN Xiaohui
tel: 029-8201002
National Key Lab. of Integrated Service Network
Xidian univ. 710071, P.R.China