From owner-bug-octave at bevo dot che dot wisc dot edu Fri Dec 13 00:56:28 1996 Subject: Octave Compile Problem From: "John W. Eaton" To: "Jay J. Williams" Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 13 Dec 1996 00:56:01 -0600 On 12-Dec-1996, Jay J. Williams wrote: : I'm trying to compile Octave-2.0 for MkLinux and I'm getting the following : error: : : c++ -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc : -DHAVE_CONFI : G_H -fno-implicit-templates -g -O2 -Wall -L.. -u MAIN__ -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 fsqp.o getgrent.o getpwent.o : getr : usage.o givens.o hess.o ifft.o ifft2.o inv.o log.o lpsolve.o : lsode.o lu : .o minmax.o npsol.o pinv.o qpsol.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 \ : -lF77 -lI77 -ltermcap -lm -lg++ : /usr/lib/libm.a(cabs.o): In function `z_abs': : cabs.o(.text+0x268): multiple definition of `z_abs' : /usr/lib/libF77.a(z_abs.o)(.text+0x4): first defined here : octave.o: In function `str_vec_compare(void const *, void const *)': : /home/beta/src/octave-2.0/src/../liboctave/str-vec.h:38: undefined : reference to : `basic_string >::compare(basic_string > const &, unsigned long, unsigned long) const' ... I would guess that your copies of g++ and libg++ are not properly installed. What happens if you try to compile a simple C++ program like #include int main (void) { string a = "thing one"; string b = "thing two"; return (a == b); } ? jwe