From owner-bug-octave at bevo dot che dot wisc dot edu Mon Dec 16 07:51:13 1996 Subject: Re: Octave Compile Problem From: "Jay J. Williams" To: "John W. Eaton" cc: bug-octave at bevo dot che dot wisc dot edu Date: Sun, 15 Dec 1996 09:03:42 -0600 (CST) On Fri, 13 Dec 1996, John W. Eaton wrote: > 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 : string_char_traits > 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 > Hi John, Doing the above example compiles fine. Do you have any other ideas? I have the following installed: libc-5.2.18-5g libc-static-5.2.18-5g libc-devel-5.2.18-5g libc-include-5.2.18-5g libg++-2.7.1.4-4 libg++-devel-2.7.1.4-4 gcc-2.7.2-2b gcc-c++-2.7.2-2b )|( (o o) ------------------------------------------ooO-(_)-Ooo------------------------- Jay J. Williams '||' \\|// E-Mail: jjw at nwu dot edu| | || .... .... ... - - Northwestern University || '' .|| '|. | (o o) EECS Department || .|' || '|.| J 2145 Sheridan Road || .|' '|..'|' '| - Evanston, IL 60208-3118 ''' .. | \_/ Voice: (847) 467-1949 '' FAX: (847) 491-4455 URL -> http://www.eecs.nwu.edu/~jjw ** This Message Was Printed On 100% Recycled Electronics ** ============ooO=(-)=Ooo==================ooO=======Ooo======================== (o o) )|(