Hello,

I have tried to compiled nlopt for Matlab but got the error message

.............
mex -output nlopt_optimize -O -DHAVE_CONFIG_H -I. -I../../octave -I..
-I../../api -I../../util ../../octave/nlopt_optimize-mex.c
-Wl,-O1,--sort-common,-z,relro -L../.libs -lnlopt_cxx
mv -f .deps/dummy.Tpo .deps/dummy.Po
/bin/sh ../libtool  --tag=CC   --mode=link g++  -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
-fpermissive  -Wl,-O1,--sort-common,-z,relro -o dummy dummy.o  -lm
libtool: link: g++ -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector-strong --param=ssp-buffer-size=4 -fpermissive -Wl,-O1
-Wl,--sort-common -Wl,-z -Wl,relro -o dummy dummy.o  -lm
Unknown MEX argument '-Wl,-O1,--sort-common,-z,relro'.
Makefile:733: recipe for target 'nlopt_optimize.mexa64' failed
make[3]: *** [nlopt_optimize.mexa64] Error 255
...........

I am using ArchLinux x64, Matlab 2014b, gcc 4.9.2. Is the version too high?
Any help would be much appreciated.

Thanks,
Trung

God loved the birds and invented trees.  Man loved the birds and invented
cages.
  ~Jacques Deval

Probability does not exist.
  ~Bruno de Finetti

Brian: "Look, you've got it all wrong! You don't NEED to follow ME, You
don't NEED to follow ANYBODY! You've got to think for your selves! You're
ALL individuals!"
  ~Monty Python, "The Life of Brian"
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to