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

5 次查看(过去 30 天)
  • 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!

回答(1 个)

Walter Roberson
Walter Roberson 2016-5-28
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.)

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by