gregid wrote > > I tried to install optim package downloaded from forge website, -forge, > and svn trunk download. > All with the same result. Any advice on how to fix it? Anyone else having > similar problem? > > octave:117> pkg install -forge optim > __disna_optim__.o: In function > `Z16F__disna_optim__RK17octave_value_listi': > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: > undefined reference to `sdisna_' > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: > undefined reference to `ddisna_' > collect2: ld returned 1 exit status > >
For my recent mingw built of the optim pkg, I had to add the "-lliblapack" implicitly since it has not been returned by mkoctfile -p. See following patch. Regards Nitzan --- optim-1.2.0.tar.gz\optim-1.2.0\src\Makefile Tue Jun 12 16:42:55 2012 +++ optim-1.2.0_patched.tar.gz\optim-1.2.0\src\Makefile Sat Aug 04 11:27:03 2012 @@ -1,9 +1,11 @@ MKOCTFILE ?= mkoctfile ifndef LAPACK_LIBS -LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +# LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +LAPACK_LIBS := -lliblapack endif -OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +# OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +OCTAVE_LAPACK_LIBS := -lliblapack # reported necessary for Apple's VecLib framework by Carlo de Falco # <carlo.defa...@gmail.com> ifndef BLAS_LIBS -- View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644100.html Sent from the Octave - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev