Invalid MEX-file, invalid win32 application

5 views (last 30 days)
JEREMIE
JEREMIE on 20 Jan 2012
Hi everybody,
I'm trying to use a function which called a mexw32 library but this error appear :
"Invalid MEX-file, 'C:\Program Files\...\...\*.mexw32' n'est pas une application Win32 valide"
Is anybody already met this type of error ?
My environment is : Windows XP, Matlab 2010b.
Thanks,

Answers (4)

James Tursa
James Tursa on 20 Jan 2012
This message can result when a mex routine is compiled with one version of MATLAB and then used on a different version of MATLAB. The solution is generally to recompile the mex routine using the MATLAB version that you intend to run it on.

JEREMIE
JEREMIE on 23 Jan 2012
Thanks James,
It could be this reason but it's working using the same mexw32 library on other PC with Matlab 2010b. It seems like an external problem of Matlab...

Andreas Goser
Andreas Goser on 23 Jan 2012
It might be releated to the architecture. MEXW32 is for Windows 32 Bit. Maybe you use a Win XP for 64 Bit.

JEREMIE
JEREMIE on 23 Jan 2012
Thanks Andreas but I'm using a Windows 32 Bit...

Categories

Find more on MATLAB Compiler 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!