Visuall Studio 2013 and Matlab 2017b

조회 수: 1 (최근 30일)
Naum Derzhi
Naum Derzhi 2018년 5월 2일
댓글: Walter Roberson 2018년 6월 10일
Hello,
Do you know if there are compatibility issues between Matlab2017b and VisualStudio 2013?
When I compile C code into MEX files using VS2013 I get the following error:
---------------------
c:\program files\matlab\r2017b\extern\include\tmwtypes.h(821): warning C4091: 'typedef ' : ignored on left of 'wchar_t' when no variable is declared
------------------------------------------
This warning leads to subsequent error in matrix.h
The code used to compile just fine when I had Matlab 2009b on my machine.
Recently I finally upgraded to Matlab2017b without unistalling 2009. Everything continued to work, i.e. I compiled MEX files with the same VisualStudio and called from from Matlab2017b. Then (and I admit, that was not very wise) I uninstalled Matlab 2009. VisualStudio compilation failed, of course, because the Matlab include files it referred to disappeared. Serves me right.
I edited the solution, pointing it to the include files provided by Matlab2017b. Now VisualStudio compilation fails with the above errors.
Do I need different VS version? Change something in my MEX files? Anything else?
Please help,
Naum
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 6월 10일
It is a warning, not an error itself. It does not trigger errors. It might, however, give you information about why the later errors occur, such as if the header file thought it was declaring a type but is not actually declaring a type.

댓글을 달려면 로그인하십시오.

답변 (1개)

Rik
Rik 2018년 6월 10일
You can find the full list of supported compilers for R2017b here. Assuming you have VS2013 profesional, it should still work. I have never edited mex files in a meaningful way myself, so I can't help you there.
  댓글 수: 1
Naum Derzhi
Naum Derzhi 2018년 6월 10일
Thank you for your answer. OK, indeed it says that 2013 is supported. What then could my problem be? I can see that there is a lot of difference between Matlab-provided .h file in different Matlab versions, so maybe I must change something in my VS project? Or code?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by