How can I use a DLL with Matlab when I cannot install a C compiler?
6 次查看(过去 30 天)
显示 更早的评论
Often, you use DLL's to control some hardware, e.g. FTDI's USB interfaces. The DLL's that come with such devices typically do not need a compiler to be installed somewhere, and I don't want to install a C compiler just to interface to a miscellanous piece of hardware. (By the way, it's easy enough to make a DLL that does not need a compiler's distribution package.) How do you interface to such a DLL without having to install a complete computer package? I've tried with 'mex -setup', but I don't seem to get things running this way without a compiler.
0 个评论
回答(2 个)
Philip Borghesani
2013-8-8
If you use the "mfilename" option to loadlibrary on the first computer to produce a prototype file (and thunk file if using 64 bit MATLAB) then use those on the second computer a compiler will not be needed.
0 个评论
Andreas Goser
2013-8-7
编辑:Andreas Goser
2013-8-7
mex -setup needs a C compiler as this is actually the command for setting up one.
Why do you think you need one?
And in case you really need one: Why can't you install one? There are free ones supported.
另请参阅
类别
在 Help Center 和 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!