Thread Subject: 32 vs. 64 bit - problems with mex?

Subject: 32 vs. 64 bit - problems with mex?

From: sylwia

Date: 25 Oct, 2008 21:32:19

Message: 1 of 5

hi,
i have installed matlab 2007b on the vista 64-bit. i have some project
where are the mex files compiled on previous system with vista 32 bit.
is it possible to use this mex files with my new matlab version (64 bit)
or i must compile these new?
i can't run this function now, it comes an error that "Output argument
">arg_name<" (and maybe others) not assigned during call to >m_file_name<".
but i'm not sure what this error mean. is that beacuse of 32-bit
compiled mex?

thanks for any help
sylwia

Subject: 32 vs. 64 bit - problems with mex?

From: Bruno Luong

Date: 26 Oct, 2008 06:25:06

Message: 2 of 5

sylwia <sylwia.s@gmx.at> wrote in message <52c61$49039064$5473847d$18094@news.chello.at>...

> or i must compile these new?

Yes you must recompile.

Bruno

Subject: 32 vs. 64 bit - problems with mex?

From: Ashish Uthama

Date: 27 Oct, 2008 12:57:40

Message: 3 of 5

If the error message you mention is the only one issued, it seems more
likely that you are using MATLAB 32 bit, but calling the mexfunction
incorrectly.

32bit mex files will work with 32 bit installation of MATLAB on win64 (to
the best of my knowledge), though these configurations are not officially
tested by TMW.

You can use the 'mexext' function to confirm if you have a 32bit or a
64bit MATLAB installed.

On Sat, 25 Oct 2008 17:32:19 -0400, sylwia <sylwia.s@gmx.at> wrote:

> hi,
> i have installed matlab 2007b on the vista 64-bit. i have some project
> where are the mex files compiled on previous system with vista 32 bit.
> is it possible to use this mex files with my new matlab version (64 bit)
> or i must compile these new?
> i can't run this function now, it comes an error that "Output argument
> ">arg_name<" (and maybe others) not assigned during call to
> >m_file_name<".
> but i'm not sure what this error mean. is that beacuse of 32-bit
> compiled mex?
>
> thanks for any help
> sylwia

Subject: 32 vs. 64 bit - problems with mex?

From: Naor Movshovitz

Date: 14 Nov, 2008 04:59:02

Message: 4 of 5

I am facing a similar problem. I have a newly installed 64bit MATLAB on a 64bit windows XP machine. Apparently MATLAB 64bit does not include the lcc compiler, and it also does not recognize that Visual C++ 2008 Express (x64) is installed. How can I compile mex files?

Thanks,
-naor

>> mex -setup
Please choose your compiler for building external interface (MEX) files:
 
Would you like mex to locate installed compilers [y]/n? y
 
Select a compiler:
 
[0] None
 
Compiler:

Subject: 32 vs. 64 bit - problems with mex?

From: Ashish Uthama

Date: 14 Nov, 2008 14:16:56

Message: 5 of 5

On Thu, 13 Nov 2008 23:59:02 -0500, Naor Movshovitz <nmovshov@gmail.com>
wrote:

> I am facing a similar problem. I have a newly installed 64bit MATLAB on
> a 64bit windows XP machine. Apparently MATLAB 64bit does not include the
> lcc compiler, and it also does not recognize that Visual C++ 2008
> Express (x64) is installed. How can I compile mex files?
>
> Thanks,
> -naor
>
>>> mex -setup
> Please choose your compiler for building external interface (MEX) files:
> Would you like mex to locate installed compilers [y]/n? y
> Select a compiler:
> [0] None
> Compiler:
>

I do not think this is related to the OP's post.

To answer your question:
At
  http://www.mathworks.com/support/
with search terms: "free compiler win64"
gives as the first hit:
     "Is there a free compiler for compiling MEX files in 64-bit MATLAB 7.2
(R2006a) on Windows platforms?"
     http://www.mathworks.com/support/solutions/data/1-36NJ5U.html?solution=1-36NJ5U
With text:
The free supported compiler available for 64-bit MATLAB on Windows is the
Microsoft Platform SDK. This can be downloaded at:

http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB

This compiler can only be used to compile MEX files and is not supported
with the MATLAB Compiler 4.4 (R2006a), MATLAB Builder for .NET 2.0
(R2006a) or MATLAB Builder for Excel 1.2.6 (R2006a). For more information
on compilers that can be used with MATLAB, please visit the following
webpage:

http://www.mathworks.com/support/compilers/current_release/

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