I've deployed a basic example .m to DLL but the function not found by the target system
Show older comments
I am trying to create a very simple DLL with one function (as a test)
i.e. in Matlab:
function x = addOne(y)
x = y+1;
I have tried this: mcc -v -W cpplib:libAddOne -T link:lib addOne and the deploytool. When I tried the deploytool I added the 'addOne.m' to the "exported functions"
When I try to access this function via the DLL through another piece of software I get an error that says it can't find my function.
What else do I need to do to link the function to the library ? (if I were using C++ I would use a module definition file, can I do that with matlab/deploytool ? if so , how?
e.g. if using MS Visual C++ I include a source file libAddOne.def that contains:
LIBRARY libAddOne
EXPORTS
addOne
Also I am using a 64 bit machine, will my DLL be 64bit by default?
Answers (0)
Categories
Find more on Application Deployment 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!