Hi
If you have an issue with acados
and are looking for help here, please mention:
- What interface of
acados
are you using (C
/Matlab
/Python
/Octave
)?
Matlab R2022a, Window 10
Below is what I got while running the “minimal_example_ocp”
compiling C:\Users\zpqls\Desktop\acados\examples\acados_matlab_octave\..\..\interfaces\acados_matlab_octave\ocp_get_cost.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling C:\Users\zpqls\Desktop\acados\examples\acados_matlab_octave\..\..\interfaces\acados_matlab_octave\ocp_get.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
compiling C:\Users\zpqls\Desktop\acados\examples\acados_matlab_octave\..\..\interfaces\acados_matlab_octave\ocp_eval_param_sens.c
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
acados MEX interface compiled successfully
Successfully rendered acados templates!
Error using acados_template_mex.compile_ocp_shared_lib
Building templated code as shared library failed.
Got status 2, result: [ 20%] Building C object
CMakeFiles/model_pendulum.dir/pendulum_model/pendulum_expl_ode_fun.c.obj
[ 40%] Building C object CMakeFiles/model_pendulum.dir/pendulum_model/pendulum_expl_vde_forw.c.obj
[ 60%] Building C object CMakeFiles/model_pendulum.dir/pendulum_model/pendulum_expl_vde_adj.c.obj
[ 60%] Built target model_pendulum
[ 80%] Building C object CMakeFiles/ocp_pendulum.dir/acados_solver_pendulum.c.obj
[ 80%] Built target ocp_pendulum
[100%] Linking C shared library acados_ocp_solver_pendulum.dll
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xe1):
undefined reference to `ocp_nlp_in_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x10b):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x551):
undefined reference to `ocp_nlp_dims_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x56f):
undefined reference to `ocp_nlp_dims_set_opt_vars'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x587):
undefined reference to `ocp_nlp_dims_set_opt_vars'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x5a3):
undefined reference to `ocp_nlp_dims_set_opt_vars'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x5bf):
undefined reference to `ocp_nlp_dims_set_opt_vars'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x61d):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x63d):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x65d):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x67d):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x69d):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x6bd):
more undefined references to `ocp_nlp_dims_set_constraints' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x72d):
undefined reference to `ocp_nlp_dims_set_cost'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x76e):
undefined reference to `ocp_nlp_dims_set_cost'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x798):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x7bc):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x7fc):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x81e):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x84f):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x86f):
more undefined references to `ocp_nlp_dims_set_constraints' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x88f):
undefined reference to `ocp_nlp_dims_set_cost'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x8cc):
undefined reference to `ocp_nlp_dims_set_cost'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x8f0):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x914):
undefined reference to `ocp_nlp_dims_set_constraints'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x991):
undefined reference to `external_function_param_casadi_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x9f1):
undefined reference to `external_function_param_casadi_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xa90):
undefined reference to `ocp_nlp_in_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xaba):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xafc):
undefined reference to `ocp_nlp_dynamics_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xb2a):
undefined reference to `ocp_nlp_dynamics_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xb6e):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xbd0):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xc26):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xc6f):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xcd3):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xd57):
more undefined references to `ocp_nlp_cost_model_set' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xf9c):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xfc4):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xfef):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1050):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x10e0):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1104):
more undefined references to `ocp_nlp_constraints_model_set' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x11d0):
undefined reference to `ocp_nlp_in_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x11f7):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x127b):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x12a2):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x12db):
undefined reference to `ocp_nlp_solver_opts_set_at_stage'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x130f):
undefined reference to `ocp_nlp_solver_opts_set_at_stage'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1340):
undefined reference to `ocp_nlp_solver_opts_set_at_stage'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1371):
undefined reference to `ocp_nlp_solver_opts_set_at_stage'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x139f):
undefined reference to `ocp_nlp_solver_opts_set_at_stage'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x13c5):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x13e7):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x141a):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x143e):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x145a):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x148f):
more undefined references to `ocp_nlp_solver_opts_set' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x169a):
undefined reference to `ocp_nlp_plan_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1777):
undefined reference to `ocp_nlp_config_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1801):
undefined reference to `external_function_param_casadi_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1861):
undefined reference to `external_function_param_casadi_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x187d):
undefined reference to `ocp_nlp_in_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x18c0):
undefined reference to `ocp_nlp_in_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x18e7):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x191e):
undefined reference to `ocp_nlp_dynamics_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x194c):
undefined reference to `ocp_nlp_dynamics_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x198b):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x19ed):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1a43):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1a8c):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1ad8):
undefined reference to `ocp_nlp_cost_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1b53):
more undefined references to `ocp_nlp_cost_model_set' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1d7f):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1da7):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1dd2):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1e33):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1eb0):
undefined reference to `ocp_nlp_constraints_model_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1ed4):
more undefined references to `ocp_nlp_constraints_model_set' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1f34):
undefined reference to `ocp_nlp_solver_opts_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1f5d):
undefined reference to `ocp_nlp_out_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1f76):
undefined reference to `ocp_nlp_out_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1fe4):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x200b):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2039):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2066):
undefined reference to `ocp_nlp_solver_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2082):
undefined reference to `ocp_nlp_precompute'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2120):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2147):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2175):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x21ab):
undefined reference to `ocp_nlp_precompute'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x221b):
undefined reference to `ocp_nlp_plan_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2312):
undefined reference to `ocp_nlp_config_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2391):
undefined reference to `external_function_param_casadi_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x23f1):
undefined reference to `external_function_param_casadi_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2409):
undefined reference to `ocp_nlp_in_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2431):
undefined reference to `ocp_nlp_solver_opts_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x244e):
undefined reference to `ocp_nlp_out_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2463):
undefined reference to `ocp_nlp_out_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x24e0):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2507):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x253d):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x255e):
undefined reference to `ocp_nlp_solver_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2576):
undefined reference to `ocp_nlp_precompute'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x25df):
undefined reference to `ocp_nlp_solver_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2623):
undefined reference to `ocp_nlp_solver_opts_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x263c):
undefined reference to `ocp_nlp_solver_create'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2654):
undefined reference to `ocp_nlp_precompute'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x26f0):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2714):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2738):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x275c):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2780):
undefined reference to `ocp_nlp_out_set'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x27a4):
more undefined references to `ocp_nlp_out_set' follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2825):
undefined reference to `ocp_nlp_get'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2864):
undefined reference to `ocp_nlp_solver_reset_qp_memory'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x294b):
undefined reference to `ocp_nlp_solve'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2978):
undefined reference to `ocp_nlp_solver_opts_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2982):
undefined reference to `ocp_nlp_in_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x298d):
undefined reference to `ocp_nlp_out_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2998):
undefined reference to `ocp_nlp_out_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x29a3):
undefined reference to `ocp_nlp_solver_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x29ae):
undefined reference to `ocp_nlp_dims_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x29b9):
undefined reference to `ocp_nlp_config_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x29c4):
undefined reference to `ocp_nlp_plan_destroy'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x29dc):
undefined reference to `external_function_param_casadi_free'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x29ec):
undefined reference to `external_function_param_casadi_free'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2a59):
undefined reference to `ocp_nlp_get'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2a7b):
undefined reference to `ocp_nlp_get'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2a9d):
undefined reference to `ocp_nlp_get'
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2abb):
undefined reference to `ocp_nlp_get'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\acados_ocp_solver_pendulum.dir\build.make:89: recipe for target
'acados_ocp_solver_pendulum.dll' failed
mingw32-make.exe[2]: *** [acados_ocp_solver_pendulum.dll] Error 1
CMakeFiles\Makefile2:138: recipe for target 'CMakeFiles/acados_ocp_solver_pendulum.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/acados_ocp_solver_pendulum.dir/all] Error 2
Makefile:134: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
Error in ocp_generate_c_code (line 279)
acados_template_mex.compile_ocp_shared_lib(obj.acados_ocp_nlp_json.code_export_directory)
Error in acados_ocp (line 203)
ocp_generate_c_code(obj);
Error in minimal_example_ocp (line 110)
ocp = acados_ocp(ocp_model, ocp_opts, simulink_opts);
Thank you for reading this question.
Please let me know if I post in wrong way.