undefined function error despite 'matrix.h' header linked already

5 次查看(过去 30 天)
I am trying to build a mex file from C source code. my mexutils.c code contains a function call to bool mxIsDouble(const mxArray *pa); which is declared in matrix.h and is already included in mexutils.c. But while compiling with mex, it says undefined function. another structure that's declared in matrix.h is recognized in mexutils.h i.e. the header is surely found. This is making me confused. please help. I am using win64, Matlab 2016a.
  4 个评论

请先登录,再进行评论。

回答(1 个)

Sid Jhaveri
Sid Jhaveri 2018-5-10
Hi,
Try using #include "matrix.h" instead of #include<matrix.h>.

类别

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