mex.h and mexFunction.h difference

조회 수: 15 (최근 30일)
Kunz
Kunz 2012년 3월 11일
Is there a difference between loading mex.h and mexFunction.h files in the beginning of a mex file? It appeared to me that some mex files load mex.h, others load mexFunction.h. But my Matlab 2011b only has mex.h
  댓글 수: 1
James Tursa
James Tursa 2012년 3월 11일
mex.h is the header used for mex functions. mexFunction is the name of the gateway routine. What is mexFunction.h?

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

답변 (2개)

Jan
Jan 2012년 3월 11일
[EDITED]: mexFunction.h is a small header to defined the entry point for a DLL, while mex.h is a large header file for all functions available in Mex functions.

Kunz
Kunz 2012년 3월 11일
What about, say, here, http://www.sondette.com/public/blog/?p=467. mex.h and mexFunction.h are both loaded in the beginning and void mexFunction() is defined in the code again...

카테고리

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