From bug-octave-request at bevo dot che dot wisc dot edu Thu Sep 6 08:29:12 2001 Subject: Compiling octave 2.0.16 on cygwin From: =?iso-8859-1?Q?Hrafnkell_Eir=EDksson?= To: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 6 Sep 2001 08:28:57 -0500 Hi I recently installed Cygwin 1.3.2 on a Windows2000 box. I then downloaded the Octave 2.0.16 sources and tried to compile. It fails with the following error: c++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -D HAVE_CONFIG_H -mieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall -rdynamic \ -L.. -fPIC -g -o octave \ octave.o builtins.o balance.o besselj.o betainc.o chol.o colloc.o dassl.o det.o eig.o expm.o fft.o fft2.o filter.o find.o fsolve.o gammainc.o ge tgrent.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 s chur.o sort.o svd.o syl.o time.o \ -L../liboctave -L../libcruft -L../src \ ../src/liboctinterp.a ../liboctave/liboctave.a ../libcruft/libcruft.a ../readl ine/libreadline.a ../kpathsea/libkpathsea.a ../glob/libglob.a \ -lg2c -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-c ygwin/2.95.3-5 -lcygwin -luser32 -ladvapi32 -lshell32 -lncurses -lm c++: unrecognized option -rdynamic' Warning: resolving __tzname by linking to __imp___tzname (auto-import) fu000001.o(.idata$3+0xc): undefined reference to templib_a_iname' nmth000000.o(.idata$4+0x0): undefined reference to _nm___tzname' collect2: ld returned 1 exit status make[2]: *** [octave] Error 1 make[2]: Leaving directory /tmp/octave-2.0.16/src' make[1]: *** [src] Error 2 make[1]: Leaving directory /tmp/octave-2.0.16' make: *** [all] Error 2 The compiler is $ c++ -v Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs gcc version 2.95.3-5 (cygwin special) It seems that it recognizes the option --rdynamic (note two -). That does however not solve the undefined reference problems. Is this a known problem with a known solution? Note that I do not subscribe to this mailing list to please be sure to CC any mail to me regarding this if you need further information. Thanks Hrafnkell ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------