Thread Subject: No Compilers in my Matlab 7.5 64-bit?

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Daniel

Date: 15 Apr, 2009 19:19:01

Message: 1 of 14

Hello,

I need to compile a .cpp file in my Matlab 7.5.0 Win XP 64-bit but when I type 'mex -setup', it says the following:

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: 0

I am new to compiling with Matlab. I do not have Visual Studio installed on this computer. Is it necessary to have this installed? Can I download and install the appropriate compiler from a website?

Thanks for any help!
-Dan

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Will Campbell

Date: 15 Apr, 2009 19:54:14

Message: 2 of 14

Hi Daniel,
MATLAB typically ships with the lcc compiler, but lcc is not presently
supported for Windows 64 bit machines. So far as I know, there are no
freely available C compilers out there for that platform.

More reading at
http://www.mathworks.com/support/compilers/current_release/win64.html
http://www.mathworks.com/matlabcentral/newsreader/view_thread/159291

Best of luck,
-Will


"Daniel " <djs32@buffalo.edu> wrote in message
news:gs5bv5$laa$1@fred.mathworks.com...
> Hello,
>
> I need to compile a .cpp file in my Matlab 7.5.0 Win XP 64-bit but when I
> type 'mex -setup', it says the following:
>
> 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: 0
>
> I am new to compiling with Matlab. I do not have Visual Studio installed
> on this computer. Is it necessary to have this installed? Can I download
> and install the appropriate compiler from a website?
>
> Thanks for any help!
> -Dan

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Daniel

Date: 17 Apr, 2009 01:56:01

Message: 3 of 14

Hello Will,

Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.

thanks again!
-Dan

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Steve Amphlett

Date: 17 Apr, 2009 11:00:04

Message: 4 of 14

"Daniel " <djs32@buffalo.edu> wrote in message <gs8njg$m3l$1@fred.mathworks.com>...
> Hello Will,
>
> Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.
>
> thanks again!
> -Dan

Uh?

The MathWorks provides lcc for those who do not have a proper compiler. The fact that there's no viable 64-bit version of this is beyond their conntrol. It's also beyond their control that MS have decided to not offer their 64-bit MSVC++ compiler for free.

Their supported compilers are clearly stated. They cost money.

We're you hoping that TMW would write their own C compiler and give it away for free?

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Bruno Luong

Date: 17 Apr, 2009 11:24:02

Message: 5 of 14

"Steve Amphlett" <Firstname.Lastname@Where-I-Work.com> wrote in message <gs9nfk$e1d$1@fred.mathworks.com>...
> "Daniel " <djs32@buffalo.edu> wrote in message <gs8njg$m3l$1@fred.mathworks.com>...
> > Hello Will,
> >
> > Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.
> >
> > thanks again!
> > -Dan
>
> Uh?
>
> The MathWorks provides lcc for those who do not have a proper compiler. The fact that there's no viable 64-bit version of this is beyond their conntrol. It's also beyond their control that MS have decided to not offer their 64-bit MSVC++ compiler for free.
>
> Their supported compilers are clearly stated. They cost money.
>
> We're you hoping that TMW would write their own C compiler and give it away for free?

Obviously there is a 64-bit version of lcc http://www.q-software-solutions.de/pub/lccwin64.exe (I have not tried myself)

I do not know the reason why it cannot find its way into Matlab distribution.

Bruno

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Steve Amphlett

Date: 17 Apr, 2009 13:01:19

Message: 6 of 14

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gs9osi$gle$1@fred.mathworks.com>...
> "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com> wrote in message <gs9nfk$e1d$1@fred.mathworks.com>...
> > "Daniel " <djs32@buffalo.edu> wrote in message <gs8njg$m3l$1@fred.mathworks.com>...
> > > Hello Will,
> > >
> > > Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.
> > >
> > > thanks again!
> > > -Dan
> >
> > Uh?
> >
> > The MathWorks provides lcc for those who do not have a proper compiler. The fact that there's no viable 64-bit version of this is beyond their conntrol. It's also beyond their control that MS have decided to not offer their 64-bit MSVC++ compiler for free.
> >
> > Their supported compilers are clearly stated. They cost money.
> >
> > We're you hoping that TMW would write their own C compiler and give it away for free?
>
> Obviously there is a 64-bit version of lcc http://www.q-software-solutions.de/pub/lccwin64.exe (I have not tried myself)
>
> I do not know the reason why it cannot find its way into Matlab distribution.
>
> Bruno

Did you read the details? It doesn't sound complete, finished or stable. Not something you'd want to redistribute.

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Steve Amphlett

Date: 17 Apr, 2009 13:28:02

Message: 7 of 14

"Steve Amphlett" <Firstname.Lastname@Where-I-Work.com> wrote in message <gs9uiv$70v$1@fred.mathworks.com>...
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gs9osi$gle$1@fred.mathworks.com>...
> > "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com> wrote in message <gs9nfk$e1d$1@fred.mathworks.com>...
> > > "Daniel " <djs32@buffalo.edu> wrote in message <gs8njg$m3l$1@fred.mathworks.com>...
> > > > Hello Will,
> > > >
> > > > Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.
> > > >
> > > > thanks again!
> > > > -Dan
> > >
> > > Uh?
> > >
> > > The MathWorks provides lcc for those who do not have a proper compiler. The fact that there's no viable 64-bit version of this is beyond their conntrol. It's also beyond their control that MS have decided to not offer their 64-bit MSVC++ compiler for free.
> > >
> > > Their supported compilers are clearly stated. They cost money.
> > >
> > > We're you hoping that TMW would write their own C compiler and give it away for free?
> >
> > Obviously there is a 64-bit version of lcc http://www.q-software-solutions.de/pub/lccwin64.exe (I have not tried myself)
> >
> > I do not know the reason why it cannot find its way into Matlab distribution.
> >
> > Bruno
>
> Did you read the details? It doesn't sound complete, finished or stable. Not something you'd want to redistribute.

"No building of shared libraries" could be an issue for MEX.

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Jan Houska

Date: 17 Apr, 2009 14:24:05

Message: 8 of 14

Steve Amphlett wrote:
> "Daniel " <djs32@buffalo.edu> wrote in message <gs8njg$m3l$1@fred.mathworks.com>...
>> Hello Will,
>>
>> Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.
>>
>> thanks again!
>> -Dan
>
> Uh?
>
> The MathWorks provides lcc for those who do not have a proper compiler. The fact that there's no viable 64-bit version of this is beyond their conntrol. It's also beyond their control that MS have decided to not offer their 64-bit MSVC++ compiler for free.
>
> Their supported compilers are clearly stated. They cost money.
>
> We're you hoping that TMW would write their own C compiler and give it away for free?

One of the compilers supported for MATLAB 7.5 on Win64 is Microsoft
Platform SDK 14, which I believe is downloadable at no cost. The latest
MATLAB 7.8 supports Microsoft Visual C++ 2008 Express Edition which is
also downloadable at no cost.

Jan


--
Jan Houska HUMUSOFT s.r.o.
houska@humusoft.com Pobrezni 20
http://www.humusoft.com 186 00 Praha 8
tel: ++ 420 284 011 730 Czech Republic
fax: ++ 420 284 011 740

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Steve Amphlett

Date: 17 Apr, 2009 15:58:02

Message: 9 of 14

Jan Houska <houska@humusoft.com> wrote in message <gsa3e5$cvu$1@ns.felk.cvut.cz>...
> Steve Amphlett wrote:
> > "Daniel " <djs32@buffalo.edu> wrote in message <gs8njg$m3l$1@fred.mathworks.com>...
> >> Hello Will,
> >>
> >> Thank you for your help. I don't understand why Mathworks would not choose to natively support this feature in XP 64bit.
> >>
> >> thanks again!
> >> -Dan
> >
> > Uh?
> >
> > The MathWorks provides lcc for those who do not have a proper compiler. The fact that there's no viable 64-bit version of this is beyond their conntrol. It's also beyond their control that MS have decided to not offer their 64-bit MSVC++ compiler for free.
> >
> > Their supported compilers are clearly stated. They cost money.
> >
> > We're you hoping that TMW would write their own C compiler and give it away for free?
>
> One of the compilers supported for MATLAB 7.5 on Win64 is Microsoft
> Platform SDK 14, which I believe is downloadable at no cost. The latest
> MATLAB 7.8 supports Microsoft Visual C++ 2008 Express Edition which is
> also downloadable at no cost.
>
> Jan

Mea culpa. Looks like VS 2008 Express can be coerced into playing 64-bit for no cost. It's not obvious from their (M$) site though.

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Bruno Luong

Date: 17 Apr, 2009 16:41:02

Message: 10 of 14

"Steve Amphlett" <Firstname.Lastname@Where-I-Work.com> wrote in message <gsa8u9$l2g$1@fred.mathworks.com>...

>
> Mea culpa. Looks like VS 2008 Express can be coerced into playing 64-bit for no cost. It's not obvious from their (M$) site though.

I believe the SDK is needed in order to use VS Express in 64 bits. Both VS Express and SDK are larger than 1Gbytes, so a good internet connection and a lot of persistent is required to make it works.

Bruno

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Derek O'Connor

Date: 18 Apr, 2009 07:19:03

Message: 11 of 14

"Daniel " <djs32@buffalo.edu> wrote in message <gs5bv5$laa$1@fred.mathworks.com>...
> Hello,
>
> I need to compile a .cpp file in my Matlab 7.5.0 Win XP 64-bit but when I type 'mex -setup', it says the following:
>
> 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: 0
>
> I am new to compiling with Matlab. I do not have Visual Studio installed on this computer. Is it necessary to have this installed? Can I download and install the appropriate compiler from a website?
>
> Thanks for any help!
> -Dan


Visual C++ 2008 Express works with Matlab 2007a (64bit) and above.

All the information you need is here :

http://www.mathworks.com/matlabcentral/fileexchange/22689.

After unzipping the file be sure to read the readme.txt file in the 64-bit subdirectory. This file gives complete instructions on what to download etc.

I used it to compile Tim Davis's Sparse Suite, which should test if your installation is correct.

Regards,

Derek O'Connor

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Bruno Luong

Date: 18 Apr, 2009 07:42:02

Message: 12 of 14

"Derek O'Connor" <derekroconnor@eircom.net> wrote in message
> All the information you need is here :
>
> http://www.mathworks.com/matlabcentral/fileexchange/22689.
>

Derek, the link is broken.

Bruno

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Derek O'Connor

Date: 18 Apr, 2009 08:25:03

Message: 13 of 14

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gsc08a$898$1@fred.mathworks.com>...
> "Derek O'Connor" <derekroconnor@eircom.net> wrote in message
> > All the information you need is here :
> >
> > http://www.mathworks.com/matlabcentral/fileexchange/22689.
> >
>
> Derek, the link is broken.
>
> Bruno


Sorry for the mess. The period at the end of the url is the problem. It should be

http://www.mathworks.com/matlabcentral/fileexchange/22689

Derek O'Connor

Subject: No Compilers in my Matlab 7.5 64-bit?

From: Daniel

Date: 18 Apr, 2009 15:20:03

Message: 14 of 14

Thank you all for your help! It is greatly appreciated.

-Dan

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
64 bit compilers Derek O'Connor 18 Apr, 2009 03:20:07
mex Daniel 15 Apr, 2009 15:20:03
64 bit Daniel 15 Apr, 2009 15:20:03
compiler Daniel 15 Apr, 2009 15:20:03
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