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?
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.
"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
"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?
"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?
"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.
"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.
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 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.
"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.
"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.
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.
"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
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.