Info

This question is closed. Reopen it to edit or answer.

Running a .exe from compiler with a 32bit operating system

3 views (last 30 days)
I have a .exe from compiler that was compiled in 2012a on a 64bit computer. It works fine on 64bit computers/laptops but when I try to run it on a 32bit computer (which has MCR installed) I get a windows error that it is not a valid 32bit executable.
Have I misunderstood the limitations of compiler and a .exe compiled on a 64bit machine cannot be used on a 32bit machine? I thought the MCR would work around this.
Thanks

Answers (1)

Andreas Goser
Andreas Goser on 24 Oct 2012
You really need to create the EXE from another installation with a 32 bit MATLAB on a 32 bit OS.
  2 Comments
Nick Bell
Nick Bell on 24 Oct 2012
That's a pain; I don't think we have any computers running 32bit OS with MATLAB, and we have limited licences for compiler!
I might have to be clever and run the .exe on a different computer (64bit OS) at the same workstation and use a macro to do the necessary housework to get files in the right place for the .exe to work.
Kaustubha Govind
Kaustubha Govind on 24 Oct 2012
Edited: Kaustubha Govind on 24 Oct 2012
Nick: Perhaps you should check with MathWorks Licensing Support about getting a 32-bit MATLAB installation on an existing license? I believe you should be able to install 32-bit MATLAB on a 64-bit machine to compile 32-bit applications. See this previously answered question.

This question is closed.

Products

Community Treasure Hunt

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

Start Hunting!