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

13 visualizaciones (últimos 30 días)
Michele
Michele el 12 de Feb. de 2025
Editada: Michele el 14 de Feb. de 2025
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)?

Respuestas (1)

Divyanshu
Divyanshu el 14 de Feb. de 2025
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 comentario
Michele
Michele el 14 de Feb. de 2025
Editada: Michele el 14 de Feb. de 2025
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...

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by