Celina Wang wrote: > 2. I have Gcc/G++ 4.1.1 installed. Try the CC and CXX switches I proposed below then.
> On 4/13/07, Timo Reimann <[EMAIL PROTECTED]> wrote: >> >> Celina Wang wrote: >> > I am installing ns-2.29 in Linux Ubuntu 6.06 version. >> > After modified settings of all of configure files, new >> > problem occurs that linker is not working properly. >> >> What did you modify? Could you have possibly just replaced one problem >> by >> another doing this? >> >> >> > in the directory ns-2.29/ , ./configure successfully >> > >> > passed, but make failed due to following errors: >> > (thousands of lines complaint "undefined references") >> > Anyone can give suggestions? Thanks in advanced. >> > >> > >> > >> > g++ -o ns \ >> > common/tclAppInit.o tools/random.o >> > >> > tools/rng.o tools/ranvar.o common/misc.o >> > common/timer-handler.o common/scheduler.o >> > common/object.o common/packet.o >> > comm$common/tclAppInit.o: In function >> > `Tcl_AppInit': >> > tclAppInit.cc <http://tclappinit.cc/>:(.text+0xef): undefined >> > reference to `Tcl::init(Tcl_Interp*, char const*)' >> > :tclAppInit.cc <http://tclappinit.cc/>:(.text+0x100): undefined >> reference >> > to >> > >> > `EmbeddedTcl::load()' >> > :tclAppInit.cc <http://tclappinit.cc/>:(.text+0x10c): undefined >> reference >> > to >> > `EmbeddedTcl::load common/tclAppInit.o: In function >> > `abort': >> > tclAppInit.cc <http://tclappinit.cc/>:(.text+0x13d): undefined >> > reference to `Tcl::evalc(char const*)' >> > common/tclAppInit.o: In function >> > `Tcl::instance()': >> > tclAppInit.cc >> > <http://tclappinit.cc/ >> >:(.gnu.linkonce.t._ZN3Tcl8instanceEv[Tcl::instance()]+0x4): >> > undefined reference to `Tcl::instance_' >> > tools/rng.o: In function >> > `RNG::RNG(long)': >> > rng.cc:(.text+0xdcc): undefined >> > reference to `TclObject::TclObject()' >> > :rng.cc >> > :(.text+0xe06): undefined reference to >> > >> > `TclObject::~TclObject()' >> > tools/rng.o: In function >> > `RNG::RNG(long)':rng.cc:(.text+0xe2c): undefined >> > reference to `TclObject::TclObject()' >> >> I'm on Ubuntu 6.10 and ns-allinone-2.30. ns-2 refused to work properly >> until I used GCC/G++ 4.0 (instead of 4.1) for compiling. >> >> Dapper shouldn't come with 4.1 by default but I'd make sure you don't >> have >> it installed anyway and possibly try recompiling using switches: >> >> CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 [./install|make]