Another user reported that lcc does not know how to link mex files with DLLs (even if the .lib import library is provided); I can't confirm this myself, but if true you may need to install Microsoft Visual C++ (or you could try gnumex.sourceforge.net).

On Aug 12, 2010, at 7:14 AM, Michiel Koot wrote:
I guess I should have a .lib file, but I don't know how to create that.

See the instructions on the web site and in the README about how to create the .lib file. (The lib program comes with VC++, I believe.)

To use mkoctfile with a mex program, I think you have to use "mkoctfile --mex", see:

        
http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Mex_002dFiles.html

Alternatively, you can use the nlopt_optimize-oct.cc file included in the NLopt source code (the .tar.gz file, not the .zip file).

Of course, if you have Octave for Windows installed, then you probably have MinGW installed too, and in that case you should be able to use the .tar.gz file with its Unix-style configure script and Makefile directly.

Steven

_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to