Thread Subject: Question about mex compilation on 64bit machine in Windoze

Subject: Question about mex compilation on 64bit machine in Windoze

From: Jim Rockford

Date: 24 Nov, 2008 10:32:19

Message: 1 of 7

I have recently installed Matlab R2008b. I understand that there is
no default lcc compiler for 64 bit, and that a free compiler can be
used:

Microsoft Platform SDK for Windows Server 2003 R2

I have this SDK platform installed, but when I run "mex -setup" in
Matlab, I see absolutely zero [0] options for choices of compiler, so
Matlab simply does not recognize the existence of this installation.

What do I have to do to use the SDK platform to compile with mex? Why
doesn't Matlab recognize it? Is it a matter of setting an environment
variable?

Thanks,
Jim

Subject: Question about mex compilation on 64bit machine in Windoze

From: markym

Date: 24 Nov, 2008 10:46:48

Message: 2 of 7

Jim Rockford wrote:
> I have recently installed Matlab R2008b. I understand that there is
> no default lcc compiler for 64 bit, and that a free compiler can be
> used:
>
> Microsoft Platform SDK for Windows Server 2003 R2

That's not a compiler. It's a software development kit containing
mainly lib and include files. You may be interested in looking at
Visual Studio Express Editions or gcc products.

Subject: Question about mex compilation on 64bit machine in Windoze

From: Bruno Luong

Date: 24 Nov, 2008 11:44:04

Message: 3 of 7

markym <no@email.com> wrote in message <gge0mn$q47$1@news.oulu.fi>...
> Jim Rockford wrote:

>
> That's not a compiler. It's a software development kit containing
> mainly lib and include files. You may be interested in looking at
> Visual Studio Express Editions or gcc products.

The last time I look, Express Edition doesn't seem to support 64-bits executable builder:

http://www.microsoft.com/downloads/details.aspx?FamilyId=727BCFB0-B575-47AB-9FD8-4EE067BB3A37&displaylang=en

Is there any additional package that should download separately to accomplish it?

Bruno

Subject: Question about mex compilation on 64bit machine in Windoze

From: markym

Date: 24 Nov, 2008 13:32:47

Message: 4 of 7

Bruno Luong wrote:
> The last time I look, Express Edition doesn't seem to support 64-bits executable builder:

You're right. But there exists some support for mexing on Win64:
http://www.mathworks.com/support/compilers/current_release/win64.html
Perhaps it's only 32-bit image; I have no access to such system to
verify it.

Subject: Question about mex compilation on 64bit machine in Windoze

From: Jim Rockford

Date: 24 Nov, 2008 16:15:56

Message: 5 of 7

On Nov 24, 5:46=A0am, markym <n...@email.com> wrote:
> Jim Rockford wrote:
> > I have recently installed Matlab R2008b. =A0I understand that there is
> > no default lcc compiler for 64 bit, and that a free compiler can be
> > used:
>
> > Microsoft Platform SDK for Windows Server 2003 R2
>
> That's not a compiler. It's a software development kit containing
> mainly lib and include files. You may be interested in looking at
> Visual Studio Express Editions or gcc products.

I know it's a software development kit, but apparently it's got
sufficient muscle to act as the compiler one would need for mex'ing
64bit applications in Matlab. I am simply responding to the
information from Mathworks support:

http://www.mathworks.com/support/solutions/data/1-36NJ5U.html?solution=3D1-=
36NJ5U

Note that there is also a link on that page addressing the problem I'm
having with mex -setup, but my manual path setting failed and I'm
curious as to why Matlab doesn't recognize my SDK installation by
default.

Jim

Subject: Question about mex compilation on 64bit machine in Windoze

From: Gadi Reinhorn

Date: 24 Nov, 2008 16:19:48

Message: 6 of 7

Jim,

Yes you need to have MSSdk environment variable defined.

The only reference to this in the documentation seems to be:
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/rn/f34-998197.html#f34-1011313
"The environment variable MSSdk must be defined. The value of this
environment variable is the path to the installation directory for Microsoft
Platform SDK for Windows Server 2003. This environment variable is not
commonly defined by the Microsoft Platform SDK installation program."

Hope that helps.

Gadi

Subject: Question about mex compilation on 64bit machine in Windoze

From: Gadi Reinhorn

Date: 24 Nov, 2008 16:37:30

Message: 7 of 7

Jim,

I think there is some information missing from the solution you mentioned.
I am working with technical support to improve that solution.

Let us know if defininf MSSdk worked for you.

Thanks,
Gadi

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com