5

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.

Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
  • 1
    As far as I know you're out of luck. Take your compilation troubles as a demonstration why interpreted languages like Matlab are so awesome. – Jonas Jul 20 '11 at 18:41
  • 1
    @AmV: perhaps this would help: http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html – Amro Jul 20 '11 at 20:14

2 Answers2

2

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

Community
  • 1
  • 1
Jonas Heidelberg
  • 4,984
  • 1
  • 27
  • 41
1

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.

jake
  • 11
  • 1