Creating 32 bit DLL trough MatLab 2019b (64bit)

14 次查看(过去 30 天)
I need to create a DLL from a set of MatLab scripts, the target environment will be LabView 2013 32 bit.
I already tried creating the DLL trough MatLab and MinGW-W64 but what I have got is not usable into LabView because is 64bit.
I googled and read many articles but I'm a little bit confused.
Is it possible using MatLab 2019b 64bit or I have to switch to a 32bit release?
Which toolchain (C/C++) I have to use? How can instruct mbuild to correctly produce 32bit binaries?
I can use MinGW-W64 or I need to reinstall it?
Which installer I should use (I tried mingw installer and cygwin but none asked about bitness)?
Is better to use Visual Studio ? Which release (2017,2019, 2022)?

回答(1 个)

Divyanshu
Divyanshu 2025-2-14
Hello @Michele,
You can refer the following documentation for details on Building 32-bit DLL on 64-bit Windows Platform Using MSCV Toolchain:
Note: This documentation is only available for R2021a or later. Therefore the steps mentioned in the documentation might not work for earlier releases.
If this does not help, then you can reach out to MathWorks Technical Support.
  1 个评论
Michele
Michele 2025-2-14
编辑:Michele 2025-2-14
This can be done on any Matlab version (i.e. both on 64 bit and 32 bit)?
I have access only to Matlab version 2015x and 2019b both @ 64 bit.
Since R2021 was 64 bit only I thnk it could maybe work on 2019b 64bit...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler SDK 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by