I've deployed a basic example .m to DLL but the function not found by the target system
显示 更早的评论
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?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!