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

trying to compile the Tcl libraries for ns-2.0




Kevin,


Thanks for the tip on tcl libraries.  It worked fine.  
Now I am trying to compile the libTcl source code for ns-2.0.  I am using a
Sparc Solaris2.5.  It does not come with any C++ compiler preinstalled.  I
just use gcc 2.7.2.1.  When I run the ./configure it gives me the following
error.  It appears to be searching for a C++ compiler other than gcc.  Do you
know how to get around this problem.

Thanks,
Dennis

-------------------------------------------------------------------------
 

oberon: ./configure --enable-gcc --prefix=$HOME/sim-tools --exec_prefix=$HOME/sim-tools

loading cache ./config.cache
checking host system type... sparc-sun-solaris2.5
checking target system type... sparc-sun-solaris2.5
checking build system type... sparc-sun-solaris2.5
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


oberon: cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:585: checking host system type
configure:606: checking target system type
configure:624: checking build system type
configure:650: checking for gcc
configure:727: checking whether the C compiler (gcc  ) works
configure:741: gcc -o conftest    conftest.c  1>&5
configure:761: checking whether the C compiler (gcc  ) is a cross-compiler
configure:766: checking whether we are using GNU C
configure:775: gcc -E conftest.c
configure:790: checking whether gcc accepts -g
configure:822: checking for c++
configure:853: checking whether the C++ compiler (c++  ) works
configure:867: c++ -o conftest    conftest.C  1>&5
ld: fatal: library -lstdc++: not found
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 863 "configure"
#include "confdefs.h"
main(){return(0);}


----- End Included Message -----