Why do I receive error messages when trying to compile an mwArray structure array?
Show older comments
When I attempt to compile an example mwArray structure array using the example found by running the command:
web([docroot,'/toolbox/compiler/api_appendix34.html#93221'])
I receive the following error messages:
comptest.cpp(5) : error C2440: 'initializing' : cannot convert from 'const char [2]' to 'char ** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
comptest.cpp(5) : error C2078: too many initializers
comptest.cpp(6) : error C2664: 'mwArray::mwArray(int,int,mxClassID,mxComplexity)' : cannot convert parameter 4 from 'char ** ' to 'mxClassID'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
Why do I receive these errors?
Accepted Answer
More Answers (0)
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!