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

Re: A Problem in Installation of ns-2.0




Unfortunately, the same errors still exist in the installation of ns-2.1b1
with the following lines:

> c++ -c -I. /antep3g/network/include -I../otcl-0.96 -I/usr/local/include
> -I/usr/ocal/include  -DNO_TK  -DNEED_SUNOS_PROTOS -DUSE_SHM
> -DHAVE_LIBTCLCL1_0B3 -DHAV_TCLCL_H -DHAVE_LIBOTCL0_96 -DHAVE_OTCL_H
> -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LITCL8_0 -DHAVE_TCL_H      -g -o
> random.o random.cc
> In file included from random.h:43,
>                  from random.cc:42:
> rng.h:75: parse error before `{'
> rng.h:80: parse error before `('
> rng.h:81: parse error before `,'
> rng.h:83: `RNGSources' was not declared in this scope
> rng.h:83: parse error before `,'
> rng.h: In function `int seed()':
> rng.h:84: `stream_' undeclared (first use this function)
> rng.h:84: (Each undeclared identifier is reported only once
> rng.h:84: for each function it appears in.)
> rng.h:84: confused by earlier errors, bailing out
> make: *** [random.o] Error 1

The following lines are meant by line 75-84 of rng.h:

>> /*
>>  * Use class RNG in real programs.
>>  */
>> class RNG : public TclObject {
>>
>> public:
>>         enum RNGSources { RAW_SEED_SOURCE, PREDEF_SEED_SOURCE,
>> HEURISTIC_SEED_SOURCE };
>> 
>>         RNG() : stream_(1L) {};
>>         RNG(RNGSources source, int seed = 1) { set_seed(source, seed);
>> };
>> 
>>         void set_seed(RNGSources source, int seed = 1); 
>> 

The compiler version is high enough I think: gcc 2.7.2.1

I will be grateful if you can help me.. Thank you in advance.

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            |
|^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^|