[ns] ns-2.27 CPP_NAMESPACE

deepak deepak at dit.unitn.it
Thu Feb 5 08:47:15 PST 2004


While installing NS_2.27 on cygwin 'CPP_NAMESPACE' error was generated.
 
I changed
 
DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@
 
by
 
DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std
 
ther error in setdest was eliminated BUT got following error for
~/webtrace-conv/dec and
~/webtrace-conv/nlanr
 
Entering Dorectory ~/webtrace-conv/dec
 
g++ -c -DSTL _NAMESPACE=@STL_NAMESPACE at -DCPP_NAMESPACE=std -I. -I/~/tclcl-1
15 -I/~otcl-1.8 -I/~/include -I/usr/include/pcap -o proxytrace.o proxytrace
cc
Infile included from proxytrace.cc:3:
.../../../autoconfig.h:85 error:namespace 'CPP_NAMESPACE' undeclared
 
Please let me know.
 
thanks in advance.
 
Deepak
 
 
 
-------Original Message-------
 
From: Nicolas Christin
Date: Monday, January 19, 2004 21:05:00
To: Simon Oosthoek
Cc: ns-users at ISI.EDU
Subject: Re: [ns] Announcing ns-2.27 release
 
On Mon, 19 Jan 2004, Simon Oosthoek wrote:
 
> I did the usuall install and configure/make and got the errors below.
> The systems we tried it on are Mandrake linux 9.1 and 9.2.
> (gcc 3.2 and 3.3). I'd be reluctant to call this an improvement ;-)
 
Hi Simon,
 
> make[1]: Entering directory
> `/oldlocal/tmp/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o
> setdest.cc
> In file included from ../../../config.h:54,
> from setdest.h:5,
> from setdest.cc:57:
> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared
 
In the Makefile in indep-utils/cmu-scen-gen/setdest/, replace the
line
 
DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@
 
by
 
DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std
 
> setdest.cc:71:1: warning: "INFINITY" redefined
> In file included from /usr/include/math.h:40,
> from setdest.cc:43:
> /usr/include/bits/mathdef.h:35:1: warning: this is the location of the
> previous definition
 
That's clumsy progamming, but that's just a warning, which shouldn't
cause any problem.
 
> g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I.
> -I/oldlocal/tmp/ns-allinone-2.27/tclcl-1.15
> -I/oldlocal/tmp/ns-allinone-2.27/otcl-1.8
> -I/oldlocal/tmp/ns-allinone-2.27/include
> -I/oldlocal/tmp/ns-allinone-2.27/include -I/usr/include/pcap -o
> proxytrace.o proxytrace.cc
> In file included from proxytrace.cc:3:
> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared
>
> make[1]: Entering directory
> `/oldlocal/tmp/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
 
[error]
 
Same change as above in indep-utils/webtrace-conv/dec/Makefile, and
anywhere else this same error pops up, e.g.,
 
> make[1]: Entering directory
> `/oldlocal/tmp/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
 
Hope this helps,
--
Nicolas
..
.



More information about the Ns-users mailing list