How to get Compiler SDK to find matlab.codetools.requiredFilesAndProducts when compiling C++ shared libraries?
Show older comments
I am using the Compiler SDK toolbox to compile MATLAB code into a C++ header file, a .lib, and a .dll. Then, I am linking the compiled code and libraries into a C++ application as a plugin.
So far, I have been able to successfully link the compiled code into my application; however, during runtime, I get an error (from the compiled MATLAB portion) which I have copied below.
*Undefined variable "matlab" or class "matlab.codetools.requiredFilesAndProducts"
Unfortunately, I am constrained to version 2015b at the moment...and 2015b is when Mathworks deprecated depfun which used to provide the same functionality as matlab.codetools.requiredFilesAndProducts.
My initial guess is that matlab.codetools is not compatible with the Compiler SDK because the MATLAB code runs perfectly from the MATLAB command line, but I haven't been able to find any confirmation of this incompatibility online. Has anyone else run into this issue and found a workaround?
Thank you,
Alan
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler SDK 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!