Azzera filtri
Azzera filtri

Error while trying to copile ACADO interface

2 visualizzazioni (ultimi 30 giorni)
Andre Pereira
Andre Pereira il 30 Mag 2019
Hello guys, I have matlab 2016a and i would like to use ACADO software to do opmization of a nonlinear MPC. However, i am having this problem when i try to copile ACADO for the first time...
make clean all
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++)'.
MEX completed successfully.
*Building with 'MinGW64 Compiler (C++)'.
MEX completed successfully.
*Building with 'MinGW64 Compiler (C++)'.
MEX completed successfully.
*Building with 'MinGW64 Compiler (C++)'.
MEX completed successfully.
*Building with 'MinGW64 Compiler (C++)'.
MEX completed successfully.
*Building with 'MinGW64 Compiler (C++)'.
Error using mex
In file included from D:/acado/acado/user_interaction/options.hpp:37:0,
from D:/acado/acado/user_interaction/user_interaction.hpp:38,
from D:/acado/acado/user_interaction/algorithmic_base.hpp:38,
from D:\acado\acado\user_interaction\algorithmic_base.cpp:33:
D:/acado/acado/user_interaction/options_list.hpp:212:61: error: 'shared_ptr' is not a member of 'std'
typedef std::map<std::pair<OptionsName, OptionsItemType>, std::shared_ptr< OptionValueBase > > OptionItems;
^
D:/acado/acado/user_interaction/options_list.hpp:212:61: error: 'shared_ptr' is not a member of 'std'
D:/acado/acado/user_interaction/options_list.hpp:212:94: error: template argument 2 is invalid
typedef std::map<std::pair<OptionsName, OptionsItemType>, std::shared_ptr< OptionValueBase > > OptionItems;
^
D:/acado/acado/user_interaction/options_list.hpp:212:94: error: template argument 4 is invalid
D:/acado/acado/user_interaction/options_list.hpp:212:96: error: expected unqualified-id before '>' token
typedef std::map<std::pair<OptionsName, OptionsItemType>, std::shared_ptr< OptionValueBase > > OptionItems;
^
D:/acado/acado/user_interaction/options_list.hpp:214:3: error: 'OptionItems' does not name a type
OptionItems items;
^
D:/acado/acado/user_interaction/options_list.hpp: In member function 'ACADO::returnValue ACADO::OptionsList::add(ACADO::OptionsName, const
T&)':
D:/acado/acado/user_interaction/options_list.hpp:244:2: error: 'items' was not declared in this scope
items[ std::make_pair(name, getType< T >()) ] =
^
D:/acado/acado/user_interaction/options_list.hpp:245:4: error: 'shared_ptr' is not a member of 'std'
std::shared_ptr< OptionValue< T > > (new OptionValue< T >( value ));
^
D:/acado/acado/user_interaction/options_list.hpp:245:38: error: expected primary-expression before '>' token
std::shared_ptr< OptionValue< T > > (new OptionValue< T >( value ));
^
D:/acado/acado/user_interaction/options_list.hpp: In member function 'ACADO::returnValue ACADO::OptionsList::get(ACADO::OptionsName, T&)
const':
D:/acado/acado/user_interaction/options_list.hpp:258:2: error: 'OptionItems' has not been declared
OptionItems::const_iterator it = items.find(std::make_pair(name, getType< T >()));
^
D:/acado/acado/user_interaction/options_list.hpp:259:6: error: 'it' was not declared in this scope
if (it != items.end())
^
D:/acado/acado/user_interaction/options_list.hpp:259:12: error: 'items' was not declared in this scope
if (it != items.end())
^
D:/acado/acado/user_interaction/options_list.hpp:261:3: error: 'shared_ptr' is not a member of 'std'
std::shared_ptr< OptionValue< T > > ptr;
^
D:/acado/acado/user_interaction/options_list.hpp:261:37: error: expected primary-expression before '>' token
std::shared_ptr< OptionValue< T > > ptr;
^
D:/acado/acado/user_interaction/options_list.hpp:261:39: error: 'ptr' was not declared in this scope
std::shared_ptr< OptionValue< T > > ptr;
^
D:/acado/acado/user_interaction/options_list.hpp:262:9: error: 'static_pointer_cast' is not a member of 'std'
ptr = std::static_pointer_cast< OptionValue< T > >(it->second);
^
D:/acado/acado/user_interaction/options_list.hpp:262:52: error: expected primary-expression before '>' token
ptr = std::static_pointer_cast< OptionValue< T > >(it->second);
^
D:/acado/acado/user_interaction/options_list.hpp: In member function 'ACADO::returnValue ACADO::OptionsList::set(ACADO::OptionsName, const
T&)':
D:/acado/acado/user_interaction/options_list.hpp:278:2: error: 'OptionItems' has not been declared
OptionItems::const_iterator it = items.find(std::make_pair(name, getType< T >()));
^
D:/acado/acado/user_interaction/options_list.hpp:279:6: error: 'it' was not declared in this scope
if (it != items.end())
^
D:/acado/acado/user_interaction/options_list.hpp:279:12: error: 'items' was not declared in this scope
if (it != items.end())
^
D:/acado/acado/user_interaction/options_list.hpp:282:5: error: 'shared_ptr' is not a member of 'std'
std::shared_ptr< OptionValue< T > > (new OptionValue< T >( value ));
^
D:/acado/acado/user_interaction/options_list.hpp:282:39: error: expected primary-expression before '>' token
std::shared_ptr< OptionValue< T > > (new OptionValue< T >( value ));
^
In file included from D:/acado/acado/user_interaction/options_list.hpp:294:0,
from D:/acado/acado/user_interaction/options.hpp:37,
from D:/acado/acado/user_interaction/user_interaction.hpp:38,
from D:/acado/acado/user_interaction/algorithmic_base.hpp:38,
from D:\acado\acado\user_interaction\algorithmic_base.cpp:33:
D:/acado/acado/user_interaction/options_list.ipp: In member function 'ACADO::uint ACADO::OptionsList::getNumber() const':
D:/acado/acado/user_interaction/options_list.ipp:46:9: error: 'items' was not declared in this scope
return items.size();
^
D:/acado/acado/user_interaction/options_list.ipp: In member function 'ACADO::BooleanType ACADO::OptionsList::hasOption(ACADO::OptionsName,
ACADO::OptionsItemType) const':
D:/acado/acado/user_interaction/options_list.ipp:54:2: error: 'OptionItems' has not been declared
OptionItems::const_iterator it = items.find(std::make_pair(name, type));
^
D:/acado/acado/user_interaction/options_list.ipp:55:6: error: 'it' was not declared in this scope
if (it != items.end())
^
D:/acado/acado/user_interaction/options_list.ipp:55:12: error: 'items' was not declared in this scope
if (it != items.end())
^
In file included from D:/acado/acado/matrix_vector/matrix_vector.hpp:38:0,
from D:/acado/acado/user_interaction/log_record.hpp:36,
from D:/acado/acado/user_interaction/logging.hpp:37,
from D:/acado/acado/user_interaction/user_interaction.hpp:39,
from D:/acado/acado/user_interaction/algorithmic_base.hpp:38,
from D:\acado\acado\user_interaction\algorithmic_base.cpp:33:
D:/acado/acado/matrix_vector/matrix.hpp: At global scope:
D:/acado/acado/matrix_vector/matrix.hpp:463:14: error: 'shared_ptr' in namespace 'std' does not name a template type
typedef std::shared_ptr< GenericMatrix< double > > DMatrixPtr;
^
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);
Thank you for your attention. If someone recommend another software that i could use for this purpuse i would be really glad as well.
Have a nice day

Risposte (0)

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by