|
|
C++ compiler for mex
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: C++ compiler for mex - comp.soft-sys.matlabHello 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. ... MEX in Matlab 7.10, 64 bit, Windows 7 - comp.soft-sys.matlab ...> > Try copying yprime.c to c:\tmp, navigate there in Matlab, and then mex-compile: > mex yprime.c Yes, the compiler does work. And it is true that Matlab will not be ... Bind C AND FORTRAN Compiler with MEX - comp.soft-sys.matlab ...Hello, I have MATLAB R2007b on WinXP 32bit. Visual Studio 2005 with C++ and Intel Fortran Compiler 9.1 are installed, they work correctly. Now I... MEX ERROR: "Could not find the compiler "cl" on the DOS path ...Hi I am trying to compile some c++ code into a MEX in MATLAB 2010a under Windows 7 64 bit. I get the following error: --- Error: Could not f... Cross-compiler mex files on Windows 7 64 bit - comp.soft-sys ...Cross-compiler mex files on Windows 7 64 bit - comp.soft-sys ... MEX file cannot find entry point in 64-bit linux - comp.soft-sys ... Cross-compiler mex files on Windows 7 ... mex compiling error with header file - comp.soft-sys.matlab ...Hi, dear... I am compiling my mex with c compiler, after configuring my mex setup, and reading option files from dialogue. I input my command as ... get matlab 2010a to use MS Visual C++ 2010 Express as mex compiler ...Hi, Pretty much was the subject says: is there any way to get MATLAB 2010a to use MS Visual C++ 2010 Express as its MEX compiler? (Even if it's an un... mex and intel compiler - comp.soft-sys.matlabHi, I'm trying to compile a mex file using the intel compiler, I have just done a fresh install of MATLAB 2010a and have the intel compiler version... Unable to compile CUDA mex in Matlab R2010a 64bit CUDA - comp.soft ...That is, compiling CUDA extended mex c code files on ... R2010b 64-bit MSVC 8.0 (2005) with 64-bit compiler add-on on Windows 7 64-bit The mex setup for normal c and ... Creating static libs to use in mex - comp.soft-sys.matlab ...The first time the compiler sees this function reference is when it is called, so ... Then I use the mex command in the following way "mex sfunction.c mylib.lib". Get compiler configuration information for building MEX-files - MATLABThis MATLAB function returns a mex.CompilerConfiguration object cc containing information about the selected compiler configuration used by mex. MATLAB MEX-files - CodeProjectMCC is MATLAB to C/C++ compiler. It can compile m-files to executable files with exe or dll extension. For example: Make a C translation and a MEX-file for myfun.m: 7/26/2012 8:03:22 PM
|
|
|
|
|
|
|
|
|