Can I build a MEX file within VisualStudio?

조회 수: 6 (최근 30일)
Damien LEFEVRE
Damien LEFEVRE 2016년 12월 14일
댓글: Bart McCoy 2020년 9월 28일
I would like to be able to develop a MEX file in VisualStudio.
From mex commands lines I'm missing the ability to have a vs project file, do the linkage have code completion for large framework like Qt, etc.
Looking at the a mex export dump there's only 2 functions:
  1. 0 0000100A mexFunction = @ILT+5(mexFunction)
  2. 1 00001005 mexfilerequiredapiversion = @ILT+0(mexfilerequiredapiversion)
I'm missing the mexfilerequiredapiversion function prototype.
Has anyone tried?

채택된 답변

Sangeetha Jayaprakash
Sangeetha Jayaprakash 2016년 12월 16일
I assume that you would like to build a MEX file in Visual Studio IDE.
Refer this link for information on how to compile a MEX file in Visual Studio:
  댓글 수: 2
Josh G.
Josh G. 2019년 4월 4일
This link is dead. Is there a currently-working link?
Bart McCoy
Bart McCoy 2020년 9월 28일
I second that.... link is dead.
If there is good help for this process, it would be great to see.
I'm using Visual Studio 2017, and when I create a new project in Visual Studio, I found a MEX function template. I'll try to summarize what I find out, but if someone knows something, that would be helpful.

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

추가 답변 (1개)

rsating
rsating 2019년 7월 23일
https://www.mathworks.com/matlabcentral/answers/377799-compiling-mex-files-without-the-mex-command

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by