Path: news.mathworks.com!not-for-mail
From: "Tim Davis" <davis@cise.ufl.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mbuild -setup: no compiler detected
Date: Thu, 15 Nov 2007 00:45:40 +0000 (UTC)
Organization: University of Florida
Lines: 41
Message-ID: <fhg4rk$ft4$1@fred.mathworks.com>
References: <fhf43n$j0k$1@fred.mathworks.com> <fhfiq5$pk2$1@fred.mathworks.com>
Reply-To: "Tim Davis" <davis@cise.ufl.edu>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1195087540 16292 172.30.248.37 (15 Nov 2007 00:45:40 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 Nov 2007 00:45:40 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 45902
Xref: news.mathworks.com comp.soft-sys.matlab:437603



"Derek O'Connor" <derekroconnor@eircom.net> wrote in message
<...
> 64 bit Matlab R2007b does not have a compiler. Here is what
> I got from Matlab Support:
> 
> " The answer to your question which you have probably
> already worked out is that  the MATLAB 64bit edition does
> not ship with  a built in LCC compiler. 
> 
> Kind Regards
> Clive Amos"
> 
> It would have been useful if they told me if or when they
> will have a built-in compiler, or if there are alternatives.
> 
> Derek O'Connor

On Windows (when I have to) I try not to use the LCC
compiler; it generates slow code.  I use the freely
available Microsoft Visual C/C++ 2005 Express, for 32-bit
Windows.  It generates decent code, although not quite as
good as gcc in Linux/Unix.  The Professional version (which
comes at a price) is better, I think, since unless I'm
mistaken it includes additional compiler optimizations that
are disabled in the 2005 Express version.

See http://msdn2.microsoft.com/en-us/express/default.aspx

It's quite easy to configure mex to use this compiler.

However ... it appears that the Express edition doesn't
support 64-bit:

http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx

You might try gcc for windows:

http://gnumex.sourceforge.net/

that link doesn't talk about 64bit Windows, but 32bit. 
However, gcc and cygwin do run on 64bit Windows.