MATLAB Answers

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

17 views (last 30 days)
Md Tahmid Hossain
Md Tahmid Hossain on 7 May 2018
Answered: Sid Jhaveri on 10 May 2018
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.


Show 1 older comment

Sign in to comment.

Answers (1)

Sid Jhaveri
Sid Jhaveri on 10 May 2018
Try using #include "matrix.h" instead of #include<matrix.h>.


Sign in to comment.

Sign in to answer this question.