[Ns-developers] problem on building ns-3-dev
Gustavo Carneiro
gjcarneiro at gmail.com
Sun Jun 29 04:58:00 PDT 2008
2008/6/29 valpa <valpassing at gmail.com>:
>
> Hi,
>
> I used g++ version 4.3.1, which may be not used for current ns-3
> development. Today I tried to build ns-3-dev, but encountered
> following problem.
> [xdwang at myhost ns-3-dev]$ ./waf configure
> Checking for program g++ : ok /usr/bin/g++
> Checking for compiler version : ok Version 4.3.1
> Checking for program cpp : ok /usr/bin/cpp
> Checking for program ar : ok /usr/bin/ar
> Checking for program ranlib : ok /usr/bin/ranlib
> Checking for compiler could create programs : ok
> Checking for compiler could create shared libs : ok
> Checking for compiler could create static libs : ok
> Checking for flags -O2 -DNDEBUG : ok
> Checking for flags -g -DDEBUG : ok
> Checking for flags -g3 -O0 -DDEBUG : ok
> Checking for flags -Wall : ok
> Checking for g++ : ok
> Checking for header stdlib.h : ok
> Checking for header stdlib.h : ok
> Checking for header signal.h : ok
> Checking for high precision time implementation : 128-bit integer
> Checking for header stdint.h : ok
> Checking for header inttypes.h : ok
> Checking for header sys/inttypes.h : not found
> Checking for package gtk+-2.0 >= 2.12 : ok
> Checking for package goocanvas gthread-2.0 : not found
> Checking for program diff : ok /usr/bin/diff
> Configuration finished successfully; project is now ready to build.
> [xdwang at myhost ns-3-dev]$ ./waf build
> Entering directory `/home/xdwang/ns-3-dev/build'
> [187/477] cxx: src/core/callback-test.cc -> build/debug/src/core/
> callback-test_1.o
> In file included from ../src/core/callback-test.cc:22:
> ../src/core/callback.h: In member function 'void ns3::Callback<R, T1,
> T2, T3, T4, T5, T6>::DoAssign(ns3::Ptr<const ns3::CallbackImplBase>)':
> ../src/core/callback.h:412: error: must #include <typeinfo> before
> using typeid
> ../src/core/callback.h:412: error: must #include <typeinfo> before
> using typeid
> Build failed
> -> task failed (err #129): [bld:///home/xdwang/ns-3-dev/src/core/
> callback-test_1.o]
Fortunately this looks like an easy fix; just do as it asks (#include
<typeinfo> in src/core/callback.h). I'm sure Mathieu will take care of it
before ns-3.1 release.
Thanks for testing!
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers
mailing list