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

17 views (last 30 days)
Michele
Michele on 12 Feb 2025
Edited: Michele on 14 Feb 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)?

Answers (1)

Divyanshu
Divyanshu on 14 Feb 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 Comment
Michele
Michele on 14 Feb 2025
Edited: Michele on 14 Feb 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...

Sign in to comment.

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!