Thread Subject: Compiled on 32 bit won't run on 64 bit

Subject: Compiled on 32 bit won't run on 64 bit

From: Thomas

Date: 20 Apr, 2010 20:02:22

Message: 1 of 5


Will an application compiled on a 32-bit windows system run on a 64-bit windows system? I am compiling with MATLAB R2009b on Windows XP. The target machine is 64 bit Windows; don't know if its Vista or 7 or whether that matters. I can't seem to find a clear statement concerning this question in the Matlab documentation.

Currently, the compiled version does not run, it gives an error about not being able to find the runtime dll (I think.) If there is someway to make this work, it would be nice to know.

Regards, Tom

Subject: Compiled on 32 bit won't run on 64 bit

From: Dan Hensley

Date: 20 Apr, 2010 21:06:09

Message: 2 of 5

Thomas wrote, On 4/20/2010 2:02 PM:
>
> Will an application compiled on a 32-bit windows system run on a 64-bit
> windows system? I am compiling with MATLAB R2009b on Windows XP. The
> target machine is 64 bit Windows; don't know if its Vista or 7 or
> whether that matters. I can't seem to find a clear statement concerning
> this question in the Matlab documentation.
>
> Currently, the compiled version does not run, it gives an error about
> not being able to find the runtime dll (I think.) If there is someway to
> make this work, it would be nice to know.
>
> Regards, Tom

Yes, it will run fine, provided that you install the appropriate 32-bit
MCR. It sounds like you haven't done that yet...

Regards,
Dan

Subject: Compiled on 32 bit won't run on 64 bit

From: Thomas

Date: 21 Apr, 2010 12:13:04

Message: 3 of 5

Dan Hensley <somewhere@over.there.invalid> wrote in message <hql4sg$vdn$1@news.eternal-september.org>...
> Thomas wrote, On 4/20/2010 2:02 PM:
> >
> > Will an application compiled on a 32-bit windows system run on a 64-bit
> > windows system? I am compiling with MATLAB R2009b on Windows XP. The
> > target machine is 64 bit Windows; don't know if its Vista or 7 or
> > whether that matters. I can't seem to find a clear statement concerning
> > this question in the Matlab documentation.
> >
> > Currently, the compiled version does not run, it gives an error about
> > not being able to find the runtime dll (I think.) If there is someway to
> > make this work, it would be nice to know.
> >
> > Regards, Tom
>
> Yes, it will run fine, provided that you install the appropriate 32-bit
> MCR. It sounds like you haven't done that yet...
>
> Regards,
> Dan
The file mclmcrrt711.dll installs to Program Files (x86) on a 64-bit system, not to Program Files. There appears to be some disconnect between where MCRinstaller puts the file and where the compiled exe looks for it.

Subject: Compiled on 32 bit won't run on 64 bit

From: Thomas

Date: 21 Apr, 2010 12:41:22

Message: 4 of 5

Sorry to bother you folks. After reinstalling, the compiled program runs. Unfortunately, I don't know why it would not work previously.

Regards, Tom

Subject: Compiled on 32 bit won't run on 64 bit

From: study

Date: 18 Oct, 2011 14:58:10

Message: 5 of 5

"Thomas" wrote in message <hqmq4g$ojv$1@fred.mathworks.com>...
> Dan Hensley <somewhere@over.there.invalid> wrote in message <hql4sg$vdn$1@news.eternal-september.org>...
> > Thomas wrote, On 4/20/2010 2:02 PM:
> > >
> > > Will an application compiled on a 32-bit windows system run on a 64-bit
> > > windows system? I am compiling with MATLAB R2009b on Windows XP. The
> > > target machine is 64 bit Windows; don't know if its Vista or 7 or
> > > whether that matters. I can't seem to find a clear statement concerning
> > > this question in the Matlab documentation.
> > >
> > > Currently, the compiled version does not run, it gives an error about
> > > not being able to find the runtime dll (I think.) If there is someway to
> > > make this work, it would be nice to know.
> > >
> > > Regards, Tom
> >
> > Yes, it will run fine, provided that you install the appropriate 32-bit
> > MCR. It sounds like you haven't done that yet...
> >
> > Regards,
> > Dan
> The file mclmcrrt711.dll installs to Program Files (x86) on a 64-bit system, not to Program Files. There appears to be some disconnect between where MCRinstaller puts the file and where the compiled exe looks for it.

@Dan:
hi,
after installing MATLAB 2009b, I accidentially put MATLAB in folder " Program Files (x86)\ ", and so is "mclmcrrt711.dl". Will this come up with some MATLAB problems later on?
Actually, Im having problems with MATLAB compiler. I cannot deploy DLLs created in VS2008 project and cant even initialize MCR.
Is this the case??

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com