I finally succeeded to compile the NLopt mex-file in Matlab 6.5 on WinXP. For others interested in doing this:
Download the Windows precompiled version of NLopt. Install the MinGW gcc compiler. Convert libnlopt-0.dll to a lib file by calling at the Dos command prompt: "C:\MinGW\bin\dlltool.exe --input-def libnlopt-0.def --dllname libnlopt-0.dll --output-lib libnlopt-0.lib" Use gnumex-1.13 to make MinGW the default mex-compiler in Matlab. (Newer versions of gnumex only work with Matlab 7.x and later.) Compile the-mex file in Matlab by calling: "mex nlopt_optimize.c libnlopt-0.lib" And that's it! _______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
