Interesting. I could not reproduce the error, on my machine.
Do you use the recent master?
I found OptionsCPY is used by qpOASES.
I would suggest too clean the lib folder and compile acados again without qpOASES.
I did that and the this error dissapeard ( does this imply that I cannot use qpOASES in matlab mex?)
However, now I got a new error
Reference to non-existent field 'print_info'.
Error in generate_c_code_implicit_ode (line 35)
if opts.print_info
Error in ocp_generate_casadi_ext_fun (line 52)
generate_c_code_implicit_ode(model_struct, opts_struct);
Error in acados_ocp (line 74)
ocp_generate_casadi_ext_fun(obj.model_struct, obj.opts_struct);
Error in example_ocp (line 248)
ocp = acados_ocp(ocp_model, ocp_opts);
actually, the interface also works with qpOASES. So, this was just a temporary fix.
Regarding your current error. It seems to occur in this file:
However, the print_info part only appears in the comments.
Thus, I think it is most likely that you have an older version of this file somewhere in your matlab path and Matlab is using this instead.
I suggest going through your Matlab path and removing other acados versions or even remove them from your system.
These are just Matlab files, so you can also set breakpoints to find which file is actually used.
I had no other versions of acados but all folder and subfolders were added to the MATLAB path on my PC, so it was taking the functions from .../acados/experimental
Removing this folder from the path did it for me, I was now able to run the examples and use the matlab mex interface.