Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab with ACADO #280

Open
Mosolim opened this issue May 5, 2020 · 4 comments
Open

Matlab with ACADO #280

Mosolim opened this issue May 5, 2020 · 4 comments

Comments

@Mosolim
Copy link

Mosolim commented May 5, 2020

I trying to run ACADo using Matlab 2020a on WIn 10 Visual C++ 2019 but I get the following error message
Cleaning up all ACADO files...
Removing ACADO folders from Matlab path...
Clean completed.
Making ACADO...
*Building with 'MinGW64 Compiler (C++)'.
MEX completed successfully.
*Building with 'MinGW64 Compiler (C++)'.

Error using mex
In file included from E:/IFAT/acado-master/acado/utils/acado_utils.hpp:39:0,
from E:\IFAT\acado-master\acado\utils\acado_message_handling.cpp:37:
C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/cmath:1225:11:
error: '::round' has not been declared
using ::round;
^~~~~

Error in makehelper>execute_command (line 338)
eval(s);

Error in makehelper (line 243)
execute_command (cmd, DEBUG, SRC{i}, ~PARALLEL) ;

Error in make (line 79)
makehelper(0, {}, varargin);

@Mosolim
Copy link
Author

Mosolim commented May 5, 2020

The problem is solved just need to be sure that the compiler is Windows Visual C++ 2019 (in my case)
make clean all;
Cleaning up all ACADO files...
Removing ACADO folders from Matlab path...
Clean completed.
Making ACADO...
*Building with 'Microsoft Visual C++ 2019'.
MEX completed successfully.

@pls30
Copy link

pls30 commented Mar 6, 2021

thank you Mosolim

@vpatne
Copy link

vpatne commented Dec 14, 2022

I have matlab 19a with VS 2017 - still getting error with make clean all

please help

@Shign
Copy link

Shign commented Apr 26, 2023

WIn 10 Visual C++ 2019 but I get the following error message
Cleaning up all ACADO files...

how did you do to check the comliler is visual c++ 2019. mex -setup c++?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants