32 bit mex file not working in a 64 bit version of matlab

8 Ansichten (letzte 30 Tage)
Newman
Newman am 25 Jun. 2015
Kommentiert: Newman am 28 Jun. 2015
Hi I am currently working on a 64 bit version of matlab(2015 ra).I have a mex file prematch_mex.mexw32 .whenever i am runnig the main function it is always showing the same error function not defined.( I have chekd that it is in the path).How to run a mex a 32bit file in a 64 bit version of matlab?
And one more important thing ,i also have a file named prematch_mex.mexglx . wht is this extension = .mexglx ????
I am working on windows

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Jun. 2015
.mexglx files are for Linux.
You cannot use a .mexw32 with 64 bit MATLAB. You will need to get the source recompiled to 64 bit version, or else you will need to use 32 bit MATLAB (which can be run even on 64 bit MS Windows systems.)
  6 Kommentare
Newman
Newman am 27 Jun. 2015
@Walter Roberson that means i have no choice but to download a 32 bit matlab instead?
Walter Roberson
Walter Roberson am 27 Jun. 2015
Bearbeitet: Walter Roberson am 28 Jun. 2015
Of course you have choices. For example you could track down the authors and request that they provide you with a 64 bit version. You could write the functionality yourself. You could hire the authors to provide a 64 bit version. You could get permission from the authors to decompile (but only after you read the matlab terms and conditions about Derived Works and what you can do with them.) You could write a wrapper program that allows 64 bit programs to call 32 bit DLL and somehow write the interface without reverse engineering the interface in violation of the Mathworks Terms of Use. You could contract with Mathworks for permission to perform the necessary reverse engineering. You could hire Mathworks to build such an interface.
And willfully violating a license agreement is always an option. You might not like the potential consequences but it is an option.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Ken Atwell
Ken Atwell am 28 Jun. 2015
This is a stab in the dark, but a Google search found this on GitHub. If that is the package you are using, the MEX files here have .mexw64 versions, which is what you need for 64-bit MATLAB on Windows.
  2 Kommentare
Walter Roberson
Walter Roberson am 28 Jun. 2015
That was a search Above and Beyond The Call Of Duty, Ken ;-)
Newman
Newman am 28 Jun. 2015
@Ken Atwell thank you and one more question why is the 64 bit version code taking longer time than the 32 bit one????

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Code Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by