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

2 Ansichten (letzte 30 Tage)
Md Tahmid Hossain
Md Tahmid Hossain am 7 Mai 2018
Beantwortet: Sid Jhaveri am 10 Mai 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.
  4 Kommentare

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by