C++ compiler for mex

  • Follow


Hello all,

I am trying to mex a C++ file but it seems that MATLAB does not recognize my C++ compiler. I have Visual Studio C++ 2010 on my machine.
when I try  mex -setup  there is no C++ compiler (only lcc)

Can you please guide me?
Thanks 
0
Reply Masoud 2/6/2011 7:34:04 AM

"Masoud" wrote in message <iilitc$hp1$1@fred.mathworks.com>...
> Hello all,
> 
> I am trying to mex a C++ file but it seems that MATLAB does not recognize my C++ compiler. I have Visual Studio C++ 2010 on my machine.
> when I try  mex -setup  there is no C++ compiler (only lcc)
> 
> Can you please guide me?
> Thanks 

Do you happen to be using R2010a?

http://www.mathworks.com/support/solutions/en/data/1-D5W493/?solution=1-D5W493

Wayne
0
Reply Wayne 2/6/2011 12:26:03 PM


"Wayne King" <wmkingty@gmail.com> wrote in message <iim40r$5aa$1@fred.mathworks.com>...
> "Masoud" wrote in message <iilitc$hp1$1@fred.mathworks.com>...
> > Hello all,
> > 
> > I am trying to mex a C++ file but it seems that MATLAB does not recognize my C++ compiler. I have Visual Studio C++ 2010 on my machine.
> > when I try  mex -setup  there is no C++ compiler (only lcc)
> > 
> > Can you please guide me?
> > Thanks 
> 
> Do you happen to be using R2010a?
> 
> http://www.mathworks.com/support/solutions/en/data/1-D5W493/?solution=1-D5W493
> 
> Wayne

Thanks a lot Wayne. It works now:)
Just in case I wonder if you have any idea about the following error:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(576) : error 

C2371: 'char16_t' : redefinition; different basic types 
        c:\program files (x86)\matlab\r2010a\extern\include\matrix.h(330) : see declaration of 'char16_t' 
0
Reply Masoud 2/6/2011 7:00:05 PM

2 Replies
415 Views

(page loaded in 0.184 seconds)

Similiar Articles:













7/26/2012 8:03:22 PM


Reply: