help-octave
[Top][All Lists]
Advanced

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

Trouble compiling octave 2.0.6 under SunOS 4.1.3


From: John W. Eaton
Subject: Trouble compiling octave 2.0.6 under SunOS 4.1.3
Date: Mon, 2 Jun 1997 12:02:34 -0500

On  2-Jun-1997, Roberto Dominijanni <address@hidden> wrote:

| echo "CC=gcc CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 ./configure --with-f2c" | /bin/sh
| and added
| 
| #include <cfloat>
| 
| to src/mappers.cc.  Compilation then proceeded up to
| 
| gcc  -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc  
-DHAVE_CONFIG_H  -fno-implicit-templates  -O3 -L..    -fPIC -g -o octave \
| octave.o builtins.o  balance.o  chol.o  colloc.o  dassl.o  det.o  eig.o  
expm.o  fft.o  fft2.o  filter.o  find.o  fsolve.o  getgrent.o  getpwent.o  
getrusage.o  givens.o  hess.o  ifft.o  ifft2.o  inv.o  log.o  lpsolve.o  
lsode.o  lu.o  minmax.o  pinv.o  qr.o  quad.o  qzval.o  rand.o  schur.o  sort.o 
 svd.o  syl.o  time.o \
| -L../liboctave -L../libcruft -L../readline -L../kpathsea -L../glob -L../dlfcn 
-L.  \
| -loctinterp -loctave -ltinst -lcruft  -lreadline -lkpathsea -lglob  \
| -lf2c  -ltermcap -lm -ldl 
| 
| after which it died with lots (11,094) of errors of the form
| 
| collect2: ld returned 1 exit status
| octave.o(.text+0x460): undefined reference to `basic_string<char, 
string_char_traits<char> >::nilRep'
| 
| Any ideas on which library is missing would be much appreciated.

libstdc++ is missing.  Normally, the final link is done by g++, which
automatically includes it, but you have explicitly set CXX to be gcc.

You should either not set CXX before running configure, or set it to
g++ (or c++, unless that is the name of some other C++ compiler ahead
of g++ in your path).

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]