Amelio Vazquez-Reina
Amelio Vazquez-Reina

Reputation: 96398

Can MATLAB for 64 bit use pre-compiled 32 bit mex files?

I have access to a library with pre-compiled 32 bit mex files (Windows: .mexw32, Linux: .mexa32). I am having a hard time compiling the library myself for a 64 bit machine, so I was wondering if there is a way to make MATLAB 64 bit work with 32 bit mex files.

Upvotes: 5

Views: 4160

Answers (2)

jake
jake

Reputation: 11

No a 64-bit program cannot use 32-bit shared libraries. One option is to install the 32-bit version of MATLAB on your machine as well.

Upvotes: 1

Jonas Heidelberg
Jonas Heidelberg

Reputation: 5024

In general accessing 32bit code from a 64bit executable is nontrivial. Therefore I doubt they have implemented this in MATLAB natively...

Upvotes: 2

Related Questions