I am installing the win32 platform following Guillaume JACQUENOT's steps and using MATLAB7. My computer has Windows 7.
In my case, I have to add
#include <iostream>
#include <cstring>
in matlabstring.cpp before to compile it
(mex -v -g -c -f mexopts.bat matlabstring.cpp).
However, I can not achieve to compile:
mex -v -g -f mexopts.bat -output lbfgsb *.obj. I have this error:
collect2: ld returned 1 exit status
link command: g++ -shared C:\Users\JU\APPLIC~1\MATHWO~1\MATLAB\R14\gnumex\mex.def -o lbfgsb.dll -g -Wl,--image-base,0x28000000\n -LC:\Users\JU\APPLIC~1\MATHWO~1\MATLAB\R14\gnumex arrayofmatrices.obj lbfgsb.obj matlabexception.obj matlabmatrix.obj matlabprogram.obj matlabscalar.obj matlabstring.obj program.obj solver.obj -llibmx -llibmex -llibmat
C:\MATLAB7\BIN\WIN32\MEX.PL: Error: Link of 'lbfgsb.dll' failed.
I would be very grateful to any help. Thanks,
Judit