lbfgsb-matlab icon indicating copy to clipboard operation
lbfgsb-matlab copied to clipboard

cannot find the file "solver.f"

Open Yannigi opened this issue 6 years ago • 4 comments

I would like to use this algorithm on Windows. So I followed the instruction for windows. However, when I run this line of code "mex -v -g -c -f mexopts_fortran.bat solver.f", my matlab shows like the picture below image However, I am sure I have included the source file in the workspace where I cannot find the solver.f by myself, either.

Yannigi avatar Sep 11 '18 14:09 Yannigi

@liupoplar Try replacing solver.f with solver30.f (which will use the latest version of the software).

pcarbo avatar Sep 11 '18 16:09 pcarbo

Thanks for your reply! I have tried replacing solver.f with solver30.f, but it seems it doesn't work, either. The matlab shows like picture below. image

Yannigi avatar Sep 12 '18 02:09 Yannigi

Besides, in the the instructions for Windows, I have run the command lines in the red box successfully. However, the other ones cannot be run correctly. image

Yannigi avatar Sep 12 '18 03:09 Yannigi

@liupoplar Are you in the right directory? What happens if you run ls in MATLAB?

I think the MathWorks website has a good tutorial on working with MEX files. Have you followed the instructions for setting up MEX on Windows? You might need to do this first. It would also be good to try building one of the example MEX files given in the tutorial.

pcarbo avatar Sep 18 '18 20:09 pcarbo