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

A Problem in Installation of ns-2.0



&&&& Dear Sir,

&&&& Would you please help me fixing a problem in the installation of
&&&& ns-2.0. I have outlines my problem below.

&&&& I am at the level of compiling ns-2.0 in installation. I have run
&&&& configure and it made the Makefile properly. When I type make the
&&&& following errors are read on the screen:

-- c++ -c -I.   /antep3g/network/include -I../otcl-0.96
-I/antep3g/network/ns-2.0/../tk4.2/generic -I../tcl7.6/generic -DNO_TK 
-DNEED_SUNOS_PROTOS -DUSE_SHM -DHAVE_LIBTCLCL1_0B3 -DHAVE_TCLCL_H
-DHAVE_LIBOTCL0_96 -DHAVE_OTCL_H -DHAVE_LIBTK4_2 -DHAVE_TK_H
-DHAVE_LIBTCL7_6 -DHAVE_TCL_H -O2 -o rng.o rng.cc
In file included from rng.cc:48:
rng.h:83: parse error before `{'
rng.h:88: parse error before `('
rng.h:89: parse error before `,'
rng.h:91: `RNGSources' was not declared in this scope
rng.h:91: parse error before `,'
rng.h: In function `int seed()':
rng.h:92: `stream_' undeclared (first use this function)
rng.h:92: (Each undeclared identifier is reported only once
rng.h:92: for each function it appears in.)
rng.h: In function `class RNG * defaultrng()':
rng.h:93: `default_' undeclared (first use this function)
rng.h: In function `int uniform_positive_int()':
rng.h:101: `stream_' undeclared (first use this function)
rng.h: In function `double uniform_double()':
rng.h:104: `stream_' undeclared (first use this function)
rng.h: At top level:
rng.h:126: parse error before `protected'
rng.h:128: `class RNG * default_' used prior to declaration
rng.h:129: parse error before `}'
rng.h:140: incomplete type `RNG' does not have member `RNGSources'
rng.h:140: parse error before `,'
rng.cc:160: parse error before `{'
rng.cc: In function `int * create(int, const char *const *)':
rng.cc:164: invalid use of undefined type `struct RNG'
rng.cc:164: invalid use of undefined type `struct RNG'
rng.cc: At top level:
rng.cc:166: parse error before `}'
rng.cc:166: warning: ANSI C++ forbids declaration `class_rng' with no
type or storage class
rng.cc:171: structure `RNG' not yet defined
rng.cc:171: confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `rng.o'

&&&& I think there is no parse error in file "rng.h" at the 83rd line:

/*
 * Use class RNG in real programs.
 */
class RNG
#ifdef rng_tcl
 : public TclObject
#endif /* rng_tcl */
&&&& Line 83: {
public:

  enum RNGSources { RAW_SEED_SOURCE, PREDEF_SEED_SOURCE,
HEURISTIC_SEED_SO
URCE };

&&&& I will be grateful if you can help me fixing this problem..

P.S.:I have shown my comments by beginning the line with &&&&.

Sincerely,
Deniz GURKAN
Research Assistant
	Bilkent University 
	Electrical and Electronics Eng. Dept.
	06533 Bilkent ANKARA / TURKEY
e-mail: [email protected]  URL:
http://www.ee.bilkent.edu.tr/~deniz/
|^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^|
|Permanent Adress:  Seker Fab. Loj.     Home Tel     : (90)(312)2446840
|
|                   B5-2 06790          Office phone : (90)(312)2664000
|
|                   Etimesgut / ANKARA  Office       : A-230           
|
|^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^|