Can Matlab Coder in 32-bit machine generate 64-bit DLL file?

4 views (last 30 days)
  • Hello everyone,I'm trying to convert Matlab code to C code using Matlab Coder, and I've successfully generated my DLL file.
  • Using the main.c which was generated by Matlab Coder, I've successfully code a C program which can call the DLL file and generated the results I wanted.
  • However, it just can work well on my 32-bit computer, and when it comes to 64-bit machine, the program used to call DLL file failed to compile successfully.
  • My question is: Can Matlab Coder in my 32-bit machine generate 64-bit DLL file which can be used in 64-bit computer? Or as you know, how can I solve the problem?
  • Thanks in advance!

Answers (1)

Walter Roberson
Walter Roberson on 28 May 2016
No, that is not possible.
People using 64 bit MS Windows can specifically compile at 32 bits, but there is no way to compile on 32 bit MS Windows for 64 bit use (unless perhaps there is some GNU toolchain that can cross-compile.)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!