I am on Windows and currently trying to use the code generated in Matlab by ocp.generate_c_code(). I am using Visual Studio 2019 for the development in C.
I have linked the libraries in the “lib” folder. When i try to build the project, i receive the following error messages:
libacados.lib(timing.c.obj) : error LNK2019: unresolved external symbol gettimeofday referenced in function acados_toc libacados.lib(sim_collocation_utils.c.obj) : error LNK2019: unresolved external symbol __ms_vsnprintf referenced in function snprintf.constprop.0 libblasfeo.lib(d_blas3_lib4.c.obj) : error LNK2019: unresolved external symbol ___chkstk_ms referenced in function blasfeo_hp_dgemm_tn
It seems there are some problems with linking libraries, but I don’t know which.
- From what I know, “gettimeofday” is a Unix specific function and does not exist on Windows.
- The other two errors seem to be caused by some mismatch in MinGW versions. I have installed acados for use with Matlab as explained in the documentation. There is only one version of MinGW on my path.
Does someone know where the problem may be?
Any help is welcome.